hey lennaert can you share with me a quick example of host migration when the host leaves so that the game doesn't quit. would be greatly appreciated
There never really is a quick example for something like that, generally it needs to get suited to fit a specific mechanic.
I made an example and commented it.
It has 2 things, ID preservation and reconnecting to a new host maintaining locations.
The host can even reconnect as peer and get his old location back.
It uses player object sprites on which you can pin an avatar, the idea is that the peers/host preserve the avatar if a player disconnects, or host leaves, and with those details players can reconnect.
edit: keep in mind when testing on more then 2 chromes, the local storage of the 2nd incognito window might use the cache of the 1st incognito window