summary refs log tree commit diff
path: root/src/webrtc/opcodes/Heartbeat.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-08-15 17:09:40 +0200
committerRory& <root@rory.gay>2026-08-18 12:16:45 +0200
commit6b673a2837153edf8995ea482f2ef0ad3f69efde (patch)
tree4203871a916b0c7608dfe58587f6f5ecc9ba2f37 /src/webrtc/opcodes/Heartbeat.ts
parentFix logout api (diff)
downloadserver-ts-dev/gwsep.tar.xz
Decouple gateway connection state from inner ws object dev/gwsep
Diffstat (limited to 'src/webrtc/opcodes/Heartbeat.ts')
-rw-r--r--src/webrtc/opcodes/Heartbeat.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webrtc/opcodes/Heartbeat.ts b/src/webrtc/opcodes/Heartbeat.ts

index ee0e72b32..8e38a11aa 100644 --- a/src/webrtc/opcodes/Heartbeat.ts +++ b/src/webrtc/opcodes/Heartbeat.ts
@@ -21,7 +21,7 @@ import { VoiceOPCodes, VoicePayload, WebRtcWebSocket, Send } from "../util"; export async function onHeartbeat(this: WebRtcWebSocket, data: VoicePayload) { setHeartbeat(this); - if (isNaN(data.d)) return this.close(CLOSECODES.Decode_error); + if (isNaN(data.d)) return this.rawSocket.close(CLOSECODES.Decode_error); await Send(this, { op: VoiceOPCodes.HEARTBEAT_ACK, d: data.d }); }