summary refs log tree commit diff
path: root/src/gateway/util/Heartbeat.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-08-15 17:09:40 +0200
committerRory& <root@rory.gay>2026-08-15 17:15:40 +0200
commit9f5f2a2c3b71550f21f75500534bf1332b94f771 (patch)
tree4572ef19b7e25fee06da36a62105b197cb45fade /src/gateway/util/Heartbeat.ts
parentAllow avatar_description field in profile update (diff)
downloadserver-ts-github/dev/gwsep.tar.xz
Decouple gateway connection state from inner ws object github/dev/gwsep dev/gwsep
Diffstat (limited to 'src/gateway/util/Heartbeat.ts')
-rw-r--r--src/gateway/util/Heartbeat.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/util/Heartbeat.ts b/src/gateway/util/Heartbeat.ts

index 5beb7e99..6ec067cb 100644 --- a/src/gateway/util/Heartbeat.ts +++ b/src/gateway/util/Heartbeat.ts
@@ -23,5 +23,5 @@ import { WebSocket } from "./WebSocket"; export function setHeartbeat(socket: WebSocket) { if (socket.heartbeatTimeout) clearTimeout(socket.heartbeatTimeout); - socket.heartbeatTimeout = setTimeout(() => socket.close(CLOSECODES.Session_timed_out), 1000 * 45); + socket.heartbeatTimeout = setTimeout(() => socket.rawSocket.close(CLOSECODES.Session_timed_out), 1000 * 45); }