🐛 fix identify schema
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { CLOSECODES } from "./Constants";
|
||||
import WebSocket from "./WebSocket";
|
||||
|
||||
// TODO: make heartbeat timeout configurable
|
||||
@@ -5,6 +6,6 @@ export function setHeartbeat(socket: WebSocket) {
|
||||
if (socket.heartbeatTimeout) clearTimeout(socket.heartbeatTimeout);
|
||||
|
||||
socket.heartbeatTimeout = setTimeout(() => {
|
||||
return socket.close(4009);
|
||||
return socket.close(CLOSECODES.Session_timed_out);
|
||||
}, 1000 * 45);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user