Hey, hows it going!
So I was curious about how this works, it's affected me in two areas. Once in-game with another player, this isn't a problem at all but when it comes to retrieving data about other games, I will eventually come to a "Flood Limit Exceeded" error, which (I think) disconnects from the signalling server and prevents me from reconnecting to it unless I refresh the game. Now, I'm totally understanding if I was sending constant requests every tick to the signalling server, but I'm not doing that, I space out the requests (Maybe I don't space them enough?) I also don't expect to be using all the resources on the signalling server, I do understand that it's shared and primarily used to route people to eachother, but is there a way I can solve these situations I am facing?
- I make a request to the signalling server every 5 seconds to get the Game instances, so that I can tally up how many players are online. after a certain amount of time, maybe in a few minutes, I get a "flood limit exceeded"
- I make a requests to detect the next empty room every 3 seconds when connecting to a game. Say there's Room1, Room2, Room3, and you attempt to connect, you will become host of Room4, and then if Room1/2/3 become empty, then you will end up stuck in Room4 until a bunch of players take up the previous rooms. So every 3 seconds, it will detect what room is the next empty one, so if you were in room 4, you will go to room 1 if it is empty.