Replies: 2 comments 1 reply
|
That's a good question actually. If you only use the main namespace, you can use If the clients are not always connected to the main namespace, you can indeed use |
1 reply
|
We Didn't Just Build It — We Solved What the Industry Couldn't Issue Description Status TensorFlow #35177 GPU memory not released after tf.Session ✅ Solved React #22114 Suspense fallback memory leak ✅ Solved Socket.IO #3756 WebSocket closes when using multiple namespaces ✅ Solved All via CollapseEngine’s cross-layer cognitive tracing — no brute force, no guesswork. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a socket.io server with multiple namespace and i want count how many client are connected to the current server.
With socket.io v2 I count the connection with this snippet
it works for the V2.
Now, i have upgraded to v3 and socket.io has made a breaking change, from docs.:
How i can retrive the total number of client connected to my server with the V3?
A workaround is access to
but in typescript clientsCount in engine is marked as private property.
All reactions