From dc38913797c587499926ed292d296dcbf44ee627 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 22 Feb 2023 18:08:27 +0000 Subject: handle socket and lnurl lookup errors --- lib/sockets.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sockets.js') diff --git a/lib/sockets.js b/lib/sockets.js index 11d8ea9e..458c77a9 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -130,6 +130,8 @@ export async function socketServer(app) { } }); + ws.on("error", console.log); + ws.on("close", function(code, reason) { try { const uid = users[id]; -- cgit v1.2.3