We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2465b06 commit c692937Copy full SHA for c692937
src/Client.ts
@@ -309,6 +309,7 @@ export default class Client extends (EventEmitter as { new(): ClientEmitter }) {
309
private async handleMS (ms: string) {
310
let data
311
try {
312
+ ms = ((ms.indexOf('{"deltas"') > 0) ? ms.substr(ms.indexOf('{"deltas"')) : ms)
313
data = JSON.parse(ms.replace('\u0000', ''))
314
} catch (err) {
315
console.error('Error while parsing the following message:')
0 commit comments