diff options
| author | Adam Soltys <[email protected]> | 2023-02-22 18:08:27 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-22 18:08:35 +0000 |
| commit | dc38913797c587499926ed292d296dcbf44ee627 (patch) | |
| tree | 8a06c4144f63fb91c16c28efce423534a46b2d74 /lib/sockets.js | |
| parent | 94f8e7a27cdc5922919d85d8051d24ada1f06922 (diff) | |
| download | coinos-server-dc38913797c587499926ed292d296dcbf44ee627.tar.gz coinos-server-dc38913797c587499926ed292d296dcbf44ee627.zip | |
handle socket and lnurl lookup errors
Diffstat (limited to 'lib/sockets.js')
| -rw-r--r-- | lib/sockets.js | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |
