1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 18:32:33 +01:00

Add error handler for individual gateway sockets

This commit is contained in:
Madeline 2023-01-10 12:54:03 +11:00
parent 98d318fd88
commit 9efac4ad16

View File

@ -35,6 +35,9 @@ export async function Connection(
socket.on("close", Close);
// @ts-ignore
socket.on("message", Message);
socket.on("error", (err) => console.error("[Gateway]", err));
// console.log(
// `[Gateway] New connection from ${socket.ipAddress}, total ${this.clients.size}`,
// );