Enum SessionState

Namespace
Unity.Multiplayer.Core

Where a session is in its life.

public enum SessionState

Fields

Connected = 5

Client: approved and in the session.

Connecting = 4

Client: connecting to the server and awaiting approval.

Disconnected = 6

Client: out of the session; LastDisconnect says why.

Idle = 0

Nothing running. The initial state, and where a Host or Server returns after stopping.

Running = 2

Host or Server: accepting players and ticking.

Starting = 1

Host or Server: the transport is binding and the server is coming up.

Stopping = 3

Host or Server: shutting down; players are being dropped.

Remarks

A Host or Server goes Idle → Starting → Running → Stopping → Idle. A Client goes Idle → Connecting → Connected → Disconnected, and can start again from Disconnected.