Socket.io - Limit max number of connections?

Viewed 422

Let's say I want only up to 100 users to join my server. Is there a way to do this internally?

Something like:

io.maxConnections = 100; //If client connections == 100, refuse next client connection
1 Answers

Based on @turivishal's answer, I found:

server.maxConnections = 100;//Max number of connections
Related