private void OnClientConnect(OnConnectionEvent e) { if (clients.Count == maxConnections) { return; } clients.Add(e.Session); observable.Publish(new OnClientConnectEvent(e.Session)); }
private void OnConnection(OnConnectionEvent e) { if (ServerSession != e.Session) { return; } NotifyThatConnected(); RunNextState(); Disable(); }