public override Task OnDisconnected() { var table = Tables.FirstOrDefault(t => t.Id == Context.ConnectionId); if (table != null) { Tables.Remove(table); // todo end game } _game = new GameState(); Clients.All.gameReset(); return base.OnDisconnected(); }
public void SetUp() { _gameState = new GameState(); }