From a4465516df31f71136a25a91df98530489a4be81 Mon Sep 17 00:00:00 2001 From: Tomasz Kalisiak Date: Fri, 23 Aug 2024 13:14:36 +0200 Subject: [PATCH] Fix sQpushBytes sending the beginning of the array multiple times --- core/websock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/websock.js b/core/websock.js index 21327c31a..61a3091a3 100644 --- a/core/websock.js +++ b/core/websock.js @@ -208,7 +208,7 @@ export default class Websock { chunkSize = bytes.length - offset; } - this._sQ.set(bytes.subarray(offset, chunkSize), this._sQlen); + this._sQ.set(bytes.subarray(offset, offset + chunkSize), this._sQlen); this._sQlen += chunkSize; offset += chunkSize; }