summary refs log tree commit diff
path: root/src/opcodes/Resume.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-21 22:16:48 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-21 22:16:48 +0200
commite434334a21247ac29809ef5c47f4c889e28d0c20 (patch)
tree02ec82f6acc57ee8c1aecf2d95a4254e83553fd7 /src/opcodes/Resume.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-gateway (diff)
downloadserver-e434334a21247ac29809ef5c47f4c889e28d0c20.tar.xz
:sparkles: Member List
Diffstat (limited to 'src/opcodes/Resume.ts')
-rw-r--r--src/opcodes/Resume.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/opcodes/Resume.ts b/src/opcodes/Resume.ts

index 3c54b5c7..4efde9b0 100644 --- a/src/opcodes/Resume.ts +++ b/src/opcodes/Resume.ts
@@ -1,7 +1,14 @@ import { CLOSECODES, Payload } from "../util/Constants"; +import { Send } from "../util/Send"; import WebSocket from "../util/WebSocket"; -export function onResume(this: WebSocket, data: Payload) { - return this.close(CLOSECODES.Invalid_session); +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); }