Fix sQpushBytes sending the beginning of the array multiple times
This commit is contained in:
parent
bbb6a5b938
commit
a4465516df
|
@ -208,7 +208,7 @@ export default class Websock {
|
||||||
chunkSize = bytes.length - offset;
|
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;
|
this._sQlen += chunkSize;
|
||||||
offset += chunkSize;
|
offset += chunkSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue