summary refs log tree commit diff
path: root/gateway/src/opcodes/Resume.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:18:05 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:18:05 +0200
commitd24348ef0f53c80ad618056c45eda6c147525133 (patch)
tree7cf427eb871c2127aef1fdd6c9659452415cd0d6 /gateway/src/opcodes/Resume.ts
parentMerge branch 'master' into gateway (diff)
downloadserver-d24348ef0f53c80ad618056c45eda6c147525133.tar.xz
:sparkles: gateway
Diffstat (limited to 'gateway/src/opcodes/Resume.ts')
-rw-r--r--gateway/src/opcodes/Resume.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/gateway/src/opcodes/Resume.ts b/gateway/src/opcodes/Resume.ts
new file mode 100644

index 00000000..4efde9b0 --- /dev/null +++ b/gateway/src/opcodes/Resume.ts
@@ -0,0 +1,14 @@ +import { CLOSECODES, Payload } from "../util/Constants"; +import { Send } from "../util/Send"; + +import WebSocket from "../util/WebSocket"; + +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); +}