How to understand the connection status of a networkconnection on the server?

How to understand the connection status of a networkconnection on the server? I wanted to check if a networkconnection is connected or disconnected?

I’m not sure what you mean by understand the connection status? You can get the current status of a NetworkConnection like this:

var status = driver.GetConnectionState(connection);

This will return a NetworkConnection.State value, which on the server can be either Connected or Disconnected (Connecting is for clients only). These states mean exactly what their name implies. When a connection is closed (goes from disconnected to connected), you’ll also get a Disconnect event through PopEvent. Newly-connected connections are obtained through the Accept call.

thank for answer:)