예제 #1
0
 public override async Task OnConnectedAsync()
 {
     try
     {
         await _playerService.AddSessionAsync(Context, HubGroup.Players);
         await SendPlayersAvailable();
         await SendGamesAvailable();
     }
     catch (Exception e)
     {
         throw e;
     }
 }