From 6b61c86e3fc828454742587e768f5aaca167b64c Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 6 Apr 2021 04:07:32 +0200 Subject: :art: add opcodes --- src/opcodes/Heartbeat.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/opcodes/Heartbeat.ts') diff --git a/src/opcodes/Heartbeat.ts b/src/opcodes/Heartbeat.ts index 90a40230..4c8df739 100644 --- a/src/opcodes/Heartbeat.ts +++ b/src/opcodes/Heartbeat.ts @@ -4,6 +4,8 @@ import { setHeartbeat } from "../util/setHeartbeat"; import WebSocket from "../util/WebSocket"; export function onHeartbeat(this: WebSocket, data: Payload) { + // TODO: validate payload + setHeartbeat(this); Send(this, { op: 11 }); -- cgit 1.5.1