summary refs log tree commit diff
path: root/src/gateway/util/Heartbeat.ts
diff options
context:
space:
mode:
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); }