Newer
Older
percord / gateway / src / opcodes / Resume.ts
@Flam3rboy Flam3rboy on 12 Aug 2021 358 bytes :sparkles: gateway
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);
}