This commit is contained in:
David Négrier 2020-09-18 18:16:26 +02:00
parent 5c63573ef1
commit b148ca3708
5 changed files with 23 additions and 14 deletions

View file

@ -152,7 +152,7 @@ export class Connection implements Connection {
* Messages inside batched messages are extracted and sent to listeners directly.
*/
this.socket.on(EventMessage.BATCH, (batchedMessagesBinary: ArrayBuffer) => {
const batchMessage = BatchMessage.deserializeBinary(new Uint8Array(batchedMessagesBinary as ArrayBuffer));
const batchMessage = BatchMessage.deserializeBinary(new Uint8Array(batchedMessagesBinary));
for (const message of batchMessage.getPayloadList()) {
let event: string;