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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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