Skip to content

Commit c692937

Browse files
Update Client.ts
1 parent 2465b06 commit c692937

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ export default class Client extends (EventEmitter as { new(): ClientEmitter }) {
309309
private async handleMS (ms: string) {
310310
let data
311311
try {
312+
ms = ((ms.indexOf('{"deltas"') > 0) ? ms.substr(ms.indexOf('{"deltas"')) : ms)
312313
data = JSON.parse(ms.replace('\u0000', ''))
313314
} catch (err) {
314315
console.error('Error while parsing the following message:')

0 commit comments

Comments
 (0)