Skip to content

Admin UI amount of clients does not match #4476

Discussion options

You must be logged in to vote

Hi! This can happen if the clients are connected at the Engine.IO level (low-level), but not at the Socket.IO level.

With curl:

$ curl "http://localhost:3000/socket.io/?EIO=4&transport=polling"
< 0{"sid":"9yeDRtebUcmsY6lvv0T2","upgrades":["websocket"],"pingInterval":300,"pingTimeout":200,"maxPayload":1000000}

// the Engine.IO connection is now considered open

$ curl -X POST "http://localhost:3000/socket.io/?EIO=4&transport=polling&sid=9yeDRtebUcmsY6lvv0T2" -d "40"
< ok
 
// the Socket.IO connection is now considered open (you have entered the main namespace)

In your case, it seems the clients cannot reach the main namespace, is there a middleware preventing the connection?

Reference: h…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@timurkhakhalev
Comment options

Answer selected by timurkhakhalev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants