I have a websocket server and it keeps record of the users which are online. So if any change is made by a single user then it should reflect to all ther users which my server has maintained in an array.
Let's say a user changed name and total 100 users are online so server could easily loop through an array and send it to all connections.
Problem, what if I have like a good amount of user so there might be a case where my server stays in loop. So, to overcome this is there any other way to send data to all the users in websocket itself?