summary refs log tree commit diff
path: root/webrtc/src/opcodes/Heartbeat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webrtc/src/opcodes/Heartbeat.ts')
-rw-r--r--webrtc/src/opcodes/Heartbeat.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/webrtc/src/opcodes/Heartbeat.ts b/webrtc/src/opcodes/Heartbeat.ts
new file mode 100644
index 00000000..47f33f76
--- /dev/null
+++ b/webrtc/src/opcodes/Heartbeat.ts
@@ -0,0 +1,8 @@
+import { WebSocket } from "@fosscord/gateway";
+import { Payload } from "./index";
+import { setHeartbeat } from "../util";
+import { Server } from "../Server"
+
+export async function onHeartbeat(this: Server, socket: WebSocket, data: Payload) {
+	await setHeartbeat(socket, data.d);
+}
\ No newline at end of file