summary refs log tree commit diff
path: root/src/gateway/events/Close.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 20:33:57 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 20:33:57 +1000
commit4ca5a4d0b73e7450d8bcc31d242dcb849af85757 (patch)
tree97a0c6ae75416875feaa2e6806444145df577a4c /src/gateway/events/Close.ts
parentFix slowcord additional services (diff)
downloadserver-4ca5a4d0b73e7450d8bcc31d242dcb849af85757.tar.xz
Add generate:client script
Diffstat (limited to 'src/gateway/events/Close.ts')
-rw-r--r--src/gateway/events/Close.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/events/Close.ts b/src/gateway/events/Close.ts
index 40d9a6f7..82d16234 100644
--- a/src/gateway/events/Close.ts
+++ b/src/gateway/events/Close.ts
@@ -9,7 +9,7 @@ import {
 } from "@fosscord/util";
 
 export async function Close(this: WebSocket, code: number, reason: string) {
-	console.log("[WebSocket] closed", code, reason);
+	console.log("[WebSocket] closed", code, reason.toString());
 	if (this.heartbeatTimeout) clearTimeout(this.heartbeatTimeout);
 	if (this.readyTimeout) clearTimeout(this.readyTimeout);
 	this.deflate?.close();