summary refs log tree commit diff
path: root/webrtc/src/opcodes/Heartbeat.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-01-16 02:37:38 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-01-16 02:38:43 +1100
commit1569fec0cf23442b176b2a9a775208349aa719ed (patch)
treef36aff30a3d5e82f569fa7815c83a33a3066c7d3 /webrtc/src/opcodes/Heartbeat.ts
parentFix typo in commit 277b28c (diff)
downloadserver-1569fec0cf23442b176b2a9a775208349aa719ed.tar.xz
boilerplate stuff
Diffstat (limited to 'webrtc/src/opcodes/Heartbeat.ts')
-rw-r--r--webrtc/src/opcodes/Heartbeat.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/webrtc/src/opcodes/Heartbeat.ts b/webrtc/src/opcodes/Heartbeat.ts
new file mode 100644
index 00000000..04150e36
--- /dev/null
+++ b/webrtc/src/opcodes/Heartbeat.ts
@@ -0,0 +1,7 @@
+import { WebSocket } from "@fosscord/gateway";
+import { Payload } from "./index";
+import { setHeartbeat } from "./../util";
+
+export async function onHeartbeat(socket: WebSocket, data: Payload) {
+	await setHeartbeat(socket);
+}
\ No newline at end of file