Skip to content

Commit

Permalink
buffer slice
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 19, 2024
1 parent 4e0a88a commit 3b411f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine.io-parser/lib/decodePacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const mapBinary = (data: RawData, binaryType?: BinaryType) => {
);
} else {
// from WebTransport (Uint8Array)
return data.buffer;
return data.slice().buffer;
}
case "nodebuffer":
default:
Expand Down

0 comments on commit 3b411f6

Please sign in to comment.