summary refs log tree commit diff
path: root/gateway/src/events/Close.ts
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/src/events/Close.ts')
-rw-r--r--gateway/src/events/Close.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/src/events/Close.ts b/gateway/src/events/Close.ts
index d68fc751..b4fed316 100644
--- a/gateway/src/events/Close.ts
+++ b/gateway/src/events/Close.ts
@@ -3,6 +3,7 @@ import { Message } from "./Message";
 import { Session } from "@fosscord/util";
 
 export async function Close(this: WebSocket, code: number, reason: string) {
+	console.log("[WebSocket] closed", code, reason);
 	await Session.delete({ session_id: this.session_id });
 	// @ts-ignore
 	this.off("message", Message);