-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Get total number of connected clients on each new connection #1087
Comments
|
Ahhhhhhhhh. That worked. |
it always returns 1. |
wss.clients.size thanks |
Thats not return Proper connected Number of Client size or lenght |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to print the number of connected clients each time a connection is established.
Here is the server code:
When I connect with a client though I am seeing
wss.clients.length
asundefined
.The text was updated successfully, but these errors were encountered: