Add generate:client script

This commit is contained in:
Madeline
2022-09-26 20:33:57 +10:00
parent 6c82ec7475
commit 4ca5a4d0b7
5 changed files with 140 additions and 4 deletions
+1 -1
View File
@@ -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();