From 5e86d7ab9c5200d794c3adb2b422d20a2aefd2ce Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 13 Aug 2022 02:00:50 +0200 Subject: restructure to single project --- src/gateway/opcodes/Resume.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/gateway/opcodes/Resume.ts (limited to 'src/gateway/opcodes/Resume.ts') diff --git a/src/gateway/opcodes/Resume.ts b/src/gateway/opcodes/Resume.ts new file mode 100644 index 00000000..42dc586d --- /dev/null +++ b/src/gateway/opcodes/Resume.ts @@ -0,0 +1,12 @@ +import { WebSocket, Payload } from "@fosscord/gateway"; +import { Send } from "../util/Send"; + +export async function onResume(this: WebSocket, data: Payload) { + console.log("Got Resume -> cancel not implemented"); + await Send(this, { + op: 9, + d: false, + }); + + // return this.close(CLOSECODES.Invalid_session); +} -- cgit 1.5.1