Replies: 1 comment 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 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions