📝 improve logging

This commit is contained in:
Flam3rboy
2021-10-12 21:54:58 +02:00
parent b0385e0fcb
commit ec0e2a804c
4 changed files with 1 additions and 5 deletions
+1
View File
@@ -28,6 +28,7 @@ export async function Connection(
socket.on("close", Close);
// @ts-ignore
socket.on("message", Message);
console.log(`[Gateway] Connections: ${this.clients.size}`);
const { searchParams } = new URL(`http://localhost${request.url}`);
// @ts-ignore
-2
View File
@@ -37,8 +37,6 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
return;
}
console.log("[Gateway] Opcode " + OPCODES[data.op]);
try {
return await OPCodeHandler.call(this, data);
} catch (error) {