/** * Called from the client after it disconnects. */ public void OnClientDisconnected(ServerClient serverClient) { _serverClients.Remove(serverClient.GetGuid()); }
/** * Called when a client connects. Is called after OnConnect inside client itself. */ public void OnClientConnected(ServerClient serverClient) { // -- Add client to list _serverClients.Add(serverClient.GetGuid(), serverClient); }