Fix sQpushBytes sending the beginning of the array multiple times

This commit is contained in:
Tomasz Kalisiak
2024-08-23 13:14:36 +02:00
committed by GitHub
parent bbb6a5b938
commit a4465516df

View File

@@ -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;
}