Ejemplo n.º 1
0
        public async override Task OnConnectedAsync()
        {
            var results = await votingService.GetResultsAsync();

            await Clients.Caller.SendAsync("resultsChanged", results);

            await base.OnConnectedAsync();
        }