protected override void OnClose(CloseEventArgs e) { TimerHelper.StopTimer(); var key = Game.Clients.Where(x => x.Value == Context.WebSocket).FirstOrDefault().Key; Game.Clients.Remove(key); Console.WriteLine("Close"); }
private void StartSendingGameData() { TimerHelper.StartTimer(_communicationInterval); }