use a separate field for client errors

This commit is contained in:
Brian Gough 2020-02-03 14:47:45 +00:00
parent e04b6e1e49
commit 49a8e1214b

View file

@ -43,7 +43,7 @@ module.exports = Router =
session.on 'connection', (error, client, session) ->
client?.on "error", (err) ->
logger.err { err }, "socket.io client error"
logger.err { clientErr: err }, "socket.io client error"
if client.connected
client.emit("reconnectGracefully")
client.disconnect()