How to get number of all connections?

How can you get the number of users on the server and send it to the client.

Players can be in different rooms. I need to send all players the current number of all users connected to the server.

Perhaps there are ideas how to implement this?

I use Node && Express on server side

This post is deleted!

I think you need the Lobby room.