Skip to content

Tag: socket.io

Socket.io – limit connections per IP address

Is there a way to limit the number of connections to a socket.io server from the same IP address? For example, I could set the limit to 3, and then when someone opened 4 tabs to join the server, three of them would connect and the fourth or any after wouldn’t get connected. I’m not trying to cap t…

Socket listener not getting updates from React state

I have a component in which I set my state from the passed parameters to the component I set the activeList state from the passed params and then on click I update the state in order to show filtered results So ultimately users can filter their chat lists based on the chosen index And everything works fine, t…