cso2-master-server icon indicating copy to clipboard operation
cso2-master-server copied to clipboard

Update channels room lists

Open organnerx opened this issue 6 years ago • 2 comments

Possible enhancement: Currently, master server is sending room list only if you join a channel, but if you are just hanging in channel and waiting for the games you won't see that new rooms being created. You will need to leave channel and enter it again. Maybe need to implement some time interval - send every 10 seconds new room list to everyone who is hanging on channel.

organnerx avatar Feb 20 '19 10:02 organnerx

The server could trigger a room list update to everyone in the room's channel when a new room is created

L-Leite avatar Feb 20 '19 15:02 L-Leite

Please check out https://github.com/leang97/cso2-master-server/blob/master/src/channel/channelmanager.ts

I created a users list which will push update to the waiting users in room list every time someone makes changes to the room settings, it is not the best but it would work right now. You can port the functions to Ochii's original repo.

leang97 avatar Feb 25 '19 03:02 leang97