We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d97be commit d08f8f2Copy full SHA for d08f8f2
packages/engine.io/lib/transports/websocket.ts
@@ -16,7 +16,7 @@ export class WS extends Transport {
16
public send(packets: Packet[]) {
17
for (const packet of packets) {
18
Parser.encodePacket(packet, true, (data: RawData) => {
19
- if (this.writable) {
+ if (this.writable && this.socket?.readyState === WebSocket.OPEN) {
20
this.socket?.send(data);
21
}
22
});
0 commit comments