How to get the Client Count inside a Socket.IO room? Version 3.1.1

In Version 2.x.x it was possible to write

socket.in('room_id').clients((err, clients) => clients.length);

Is there a similar way to this in Version 3.1.1 / 3.x.x?

I know about the join-room and leave-room events, but i hope for a solution without own counting logic.

179 thoughts on “How to get the Client Count inside a Socket.IO room? Version 3.1.1”

  1. Pingback: discount viagra
  2. Pingback: cialis cost
  3. Pingback: viagra alternative
  4. Pingback: womens viagra
  5. Pingback: buy generic cialis
  6. Pingback: viagra sale
  7. Pingback: viagra online usa
  8. Pingback: viagra cheapest
  9. Pingback: le tadalafil
  10. Pingback: sildenafil 50mg
  11. Pingback: herbal viagra
  12. Pingback: viagra otc
  13. Pingback: buy viagra cheap
  14. Pingback: viagra cock
  15. Pingback: cialis viagra
  16. Pingback: viagra tablet
  17. Pingback: cheap viagra
  18. Pingback: low price viagra
  19. Pingback: teva sildenafil
  20. Pingback: sildenafil prices