We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6343fa commit cc1826eCopy full SHA for cc1826e
1 file changed
src/index.ts
@@ -178,7 +178,8 @@ class RemoteExecutor implements QueryExecutor {
178
while (true) {
179
const { done, value } = await reader.read();
180
if (done) break;
181
- pending = pending.length > 0 ? concat(pending, new Uint8Array(value)) : new Uint8Array(value);
+ const chunk = new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength));
182
+ pending = pending.length > 0 ? concat(pending, chunk) : chunk;
183
184
// Process complete frames
185
while (pending.length >= 4) {
0 commit comments