Note: I don’t know if this should go in Code Review or Scripting Support since I’m not actually showing code but because it works I’m putting it here.
I’ve got a server browser system I’m making, and while it works I think the system is a bit bad logically.
Basically, every 15 seconds the server clears its list of other servers and sends a request using MessagingService to get the info of other servers. When the client manually refreshes servers, it uses the list from the server.
I think the issue is obvious: If the client refreshes in the middle of the server refreshing, it doesn’t get all of the servers. I was thinking of implementing a delay where the server has to go a couple seconds without receiving another message before the client refresh can finish, but I feel like there’s a better way to do this.