Socket error
Swaraj-cs opened this issue · comments
When connecting from socketio client.. its throwing error
Error: server error
at Socket.onPacket (socket.js?0112:317:1)
at Emitter.emit (index.js?5641:143:1)
at XHR.onPacket (transport.js?1272:100:1)
at callback (polling.js?ae7b:83:1)
at Array.forEach ()
at XHR.onData (polling.js?ae7b:86:1)
at Emitter.emit (index.js?5641:143:1)
at Request.onData (polling-xhr.js?cb5e:188:1)
at Request.onLoad (polling-xhr.js?cb5e:229:1)
at xhr.onreadystatechange (polling-xhr.js?cb5e:147:1)
How can I log the incoming connections and any other events to server.
There is some function *socketio.Server.OnConnect()
, *socketio.Server.OnError()
, *socketio.Server.OnDisconnect()
.
You should have a look at the example directory.