diff options
Diffstat (limited to 'lib/sockets.js')
| -rw-r--r-- | lib/sockets.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sockets.js b/lib/sockets.js index c630c1fd..c27f997a 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -39,7 +39,8 @@ wss.on("connection", function (ws) { const id = uuidv4(); ws.on("message", async (token) => { - if (!token) return; + l.info(token); + if (!token || token === "null") return; try { const username = jwt.decode(token).username; if (!sockets[username]) sockets[username] = {}; |
