Leaving The Lobby
Last updated
Last updated
Leaving the lobby is exactly the same as leaving a match. Simply use the LeaveKronosMatch
node and the player will disconnect from the game. The session will be cleaned up automatically. If called on the hosting player, all clients will be gracefully disconnected before closing the game.
There is no hard requirement on where you need to call this from. Most games will probably have this hooked to the OnClicked
event of a widget button.
The OnComplete
event is called when the leave has been requested so at that time the player is still in the match (disconnecting in the next frame).