process ws messageQueue after setting canvasId

This commit is contained in:
HF 2020-05-17 06:42:52 +02:00
parent 121ea6ba67
commit 94e7de9894

View File

@ -83,10 +83,10 @@ class ProtocolClient extends EventEmitter {
this.isConnected = true;
this.emit('open', {});
this.requestChatHistory();
this.processMsgQueue();
if (this.canvasId !== null) {
this.ws.send(RegisterCanvas.dehydrate(this.canvasId));
}
this.processMsgQueue();
console.log(`Register ${chunks.length} chunks`);
this.ws.send(RegisterMultipleChunks.dehydrate(chunks));
}