var clients = io.sockets.clients(room); function var clients = io.sockets.clients(room); don't work in my version ^ 1.4.5

    1 answer 1

    I rummaged through the entire Internet, found no official documentation, but by chance it turned out like this:

     namespace.in(room).clients(function(err, clients) { console.log(clients.length); });