I am using Netcode for Gameobjects framework for multiplayer game, lobby and Relay for connection, but when host disconnects/left the other clients are also left/disconnects from that session.
What I wanted is when host disconnects/lefts from the session, one of the clients from the session should be the host and get authorities which host have.
Currently, I am not able to find out correct solution/examples and API for same. Please help/guide if I am missing something.
I just wanted to ask the same question as you @Dhanashree_Vinherkar
For the clients it will be really bad if the host disconnects, and they will not be very happy about it.
NGO doesn’t have host migration but you can build you own solution. We cover this very briefly in in the Relay docs and in the Lobby docs. You would need to sync gameplay-crucial netvars and do a host role transfer (it wouldn’t be seamless though).
The NGO equivalent of host migration is distributed authority. Distributed authority is a network topology where there is no server, each client owns a part of the simulation. Under distributed authority, when a client disconnects the game will continue without issue.
The distributed authority quickstart is here.
More information about the distributed authority network topology is here.