Guard ws adapter decode path against async message errors
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
f04d1204f9
commit
b20067263b
1 file changed
+6
-1
@@ -168,7 +168,12 @@ class WsNativeApiClient {
|
||||
}
|
||||
|
||||
private async handleMessage(raw: unknown) {
|
||||
const decoded = await this.decodeIncomingMessage(raw);
|
||||
let decoded: string | null;
|
||||
try {
|
||||
decoded = await this.decodeIncomingMessage(raw);
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
if (!decoded) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user