go-socket.io icon indicating copy to clipboard operation
go-socket.io copied to clipboard

Socket error

Open Swaraj-cs opened this issue 3 years ago • 1 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.

Swaraj-cs avatar Sep 24 '22 13:09 Swaraj-cs

There is some function *socketio.Server.OnConnect(), *socketio.Server.OnError(), *socketio.Server.OnDisconnect(). You should have a look at the example directory.

RandalTeng avatar Sep 28 '22 15:09 RandalTeng