Skip to content

Commit 8e3eb79

Browse files
docs: add note about ws.cork()
1 parent b35733d commit 8e3eb79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/transports/websocket.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export class WS extends Transport {
2323
for (const packet of packets) {
2424
const data = Parser.encodePacket(packet, true);
2525
if (this.writable && this.socket?.readyState === WebSocket.OPEN) {
26+
// TODO use ws.cork() once https://github.com/oven-sh/bun/issues/21588 is resolved
2627
this.socket.send(data);
2728
}
2829
}

0 commit comments

Comments
 (0)