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);
}
|