Skip to main content

Lobby.LeaveAsServer method

Requests that the server leave the client-owned lobby it’s currently in.

Remarks

This method queues an asynchronous operation to exit the client-owned lobby. On completion, a PlayFabMultiplayer.PlayFabMultiplayerServer.OnServerLobbyLeaveAsServerCompleted is provided indicating that the operation completed. This operation is restricted to client-owned lobbies that are using connections. Any server-owned data previously added to the lobby is NOT automatically deleted when the server leaves the lobby. If there’s a desire to also delete the serverData, it should be explicitly done by calling PlayFabMultiplayer.PostUpdateAsServer before leaving the lobby.

See Also

Last modified on August 3, 2026