change order of websocket packets onOpen

This commit is contained in:
HF 2022-07-02 03:10:38 +02:00
parent 6ad79250e5
commit 214daa6382

View File

@ -99,9 +99,9 @@ class SocketClient extends EventEmitter {
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));
this.processMsgQueue();
}
setCanvas(canvasId) {