We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8270e00 commit ed34a45Copy full SHA for ed34a45
lib/socket.ts
@@ -663,14 +663,14 @@ export class Socket extends Emitter<
663
664
// Socket is live - any packet counts
665
this.emitReserved("heartbeat");
666
+ this.resetPingTimeout();
667
668
switch (packet.type) {
669
case "open":
670
this.onHandshake(JSON.parse(packet.data));
671
break;
672
673
case "ping":
- this.resetPingTimeout();
674
this.sendPacket("pong");
675
this.emitReserved("ping");
676
this.emitReserved("pong");
0 commit comments