diff options
| author | Shulhan <ms@kilabit.info> | 2021-10-20 11:01:44 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-10-20 11:01:44 +0700 |
| commit | eec686b3c4907a9a83cfdcc9a9b4f8772eda4d9f (patch) | |
| tree | f438e91b3418f8b1dc4e7c7f9e9b9e0067695ba8 /websocket_client.ts | |
| parent | a3e4a44ba024f478192a807b94e858d523ad4599 (diff) | |
| download | pakakeh.ts-eec686b3c4907a9a83cfdcc9a9b4f8772eda4d9f.tar.xz | |
all: check for response ID 0 to before call onBroadcast
A response is defined as broadcast from server when the ID is 0.
Diffstat (limited to 'websocket_client.ts')
| -rw-r--r-- | websocket_client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket_client.ts b/websocket_client.ts index 62d11fc..3d68cd5 100644 --- a/websocket_client.ts +++ b/websocket_client.ts @@ -147,7 +147,7 @@ export class WuiWebSocketClient { } } - if (this.opts.onBroadcast) { + if (this.opts.onBroadcast && res.id == 0) { this.opts.onBroadcast(res) } } |
