Categories
express javascript node.js socket.io

socket.io—restrict number of maximum connections per namespace

I have a little webapp built on node.js, express and socket.io. Within that, I am using two namespaces creates like that:

lists = io.of('/lists'),
views = io.of('/view'),

What I would like to do, is to restrict the number of connections in the /views namespace. Is there any way to make that with socket.io? I have had a look at the docs, but there wasn’t anything to find there.

Any Ideas how to do that?

Thanks in ahead!