Posts Tagged ‘round robin’

Round robin notify that host has changed

September 27, 2020

Today I:

  • configured the example to emit a signal if there happens to be a new host for a lobby, and wired it up
  • altered the signalling server to send a message to a client to in turn emit said signal if a host is changed for a lobby

This is useful because if I want to hook up any custom logic in the game client associated to the previous host leaving, and a new host being assigned, I can now do it.

I also added the WebRTCclient as an autoload script, and poked at the code a bit to try to understand it better.

Going forward I might have a bit of work to do, because I will need to convert much of the MultiplayerENet stuff to WebRTC in order to get the proof of concept working. Hopefully though I can munge something together and then tidy things up a bit later.

Partial roundrobin progress

September 20, 2020

Today I made a small bit of progress in generalising the signalling server logic to support round robin selection when the host of a lobby disconnects.

Tomorrow hopefully I’ll be able to tie this piece of work off.