📝 improve logging
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user