示例#1
0
        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");
        }
示例#2
0
 private void StartSendingGameData()
 {
     TimerHelper.StartTimer(_communicationInterval);
 }