public async Task AddPlayer(string userName, string connectionId) { var match = _service.AddPlayerInRoom(userName, connectionId); if (match.PlayerBlack != null) { await Clients.Client(match.PlayerBlack.ConnectionId).SendAsync("AddPlayerReceived", match); } if (match.PlayerWhite != null) { await Clients.Client(match.PlayerWhite.ConnectionId).SendAsync("AddPlayerReceived", match); } }