Does it make sense to send a message to specific user using

There is a certain game, there are players and spectators. Is there any difference in these approaches:

1. Players and spectators shared in different namespac's/room, and events for players and spectators send everyone in your namespace/room.
2. Players and spectators in the same namespace and in the same room, but they have no listeners for a particular event(for example the players don't have a handler for the event "score", and the audience is)

1. How much will clog the air during 1 the approach? How many clients will it be noticeable?
2. Are there any pitfalls with the approach 2? (overlaps with the first question)
3. The first 2 questions, but considering that to change the logic of the entire game with 2 approach at first need to rewrite the lion's share of the project.
July 9th 19 at 12:58
1 answer
July 9th 19 at 13:00
The main thing that the viewer did not have the information with which he could influence the game process (to inform the player of insider information).

Ie the viewer can just write in the spectator chat position/state of the enemy and any player will be able to read it. But it's more the logic of the gameplay.

Driving traffic is minimal.
Chat at all. Audiences simply displays the number of points each user and animation.
And if I have the players send data to the server every 100 milliseconds and the server sends this to the audience? All within the local network. - karina59 commented on July 9th 19 at 13:03
: - Joshua97 commented on July 9th 19 at 13:06
: this is a test server. And clients how much sustain + the local network. Okay, will test. - karina59 commented on July 9th 19 at 13:09
: so you wrote in the test 1 core 10K messages a second. I am sure that you will not give out 10K messages to client) - Joshua97 commented on July 9th 19 at 13:12
But for a local network generally do not need to worry) With 10K worth of worry over the router ... but the original problem is not given. - Joshua97 commented on July 9th 19 at 13:15

Find more questions by tags Socket.ioSocketsJavaScriptWeb Development