Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket error #548

Open
Swaraj-cs opened this issue Sep 24, 2022 · 1 comment
Open

Socket error #548

Swaraj-cs opened this issue Sep 24, 2022 · 1 comment

Comments

@Swaraj-cs
Copy link

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.

@RandalTeng
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants