Node JS how to limit maximum number of sockets
08:18 09 Oct 2018

is it possibile to set the maximum number of sockets that my server can handle? Something like: maxSocket = 2 and from the 3 attempt of a socket to connect automatically refuse that connection?

Thanks

javascript node.js socket.io connection