summary refs log tree commit diff
path: root/src/opcodes/Heartbeat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/opcodes/Heartbeat.ts')
-rw-r--r--src/opcodes/Heartbeat.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/opcodes/Heartbeat.ts b/src/opcodes/Heartbeat.ts
deleted file mode 100644

index 015257b9..00000000 --- a/src/opcodes/Heartbeat.ts +++ /dev/null
@@ -1,12 +0,0 @@ -import { CLOSECODES, Payload } from "../util/Constants"; -import { Send } from "../util/Send"; -import { setHeartbeat } from "../util/setHeartbeat"; -import WebSocket from "../util/WebSocket"; - -export async function onHeartbeat(this: WebSocket, data: Payload) { - // TODO: validate payload - - setHeartbeat(this); - - await Send(this, { op: 11 }); -}