summary refs log tree commit diff
path: root/gateway/src/events/Close.ts
blob: f1a8fa9bdbe48b7f6dd5b1b21c3f1d5c622935a1 (plain) (blame)
1
2
3
4
5
6
7
import WebSocket from "ws";
import { Message } from "./Message";

export function Close(this: WebSocket, code: number, reason: string) {
	// @ts-ignore
	this.off("message", Message);
}