aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sockets.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index 7be4936b..ba763fdc 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -51,7 +51,7 @@ export async function socketServer(app) {
app.get("/ws", { websocket: true }, (connection, req) => {
let { socket: ws } = connection;
- connection.on("error", console.log);
+ connection.on("error", (e) => err(e.message));
const id = v4();
ws.id = id;
@@ -133,7 +133,7 @@ export async function socketServer(app) {
}
});
- ws.on("error", console.log);
+ ws.on("error", (e) => err(e.message));
ws.on("close", function (code, reason) {
try {