diff --git a/aspnetcore/signalr/hubs/sample/ChatHub.cs b/aspnetcore/signalr/hubs/sample/ChatHub.cs index 8acb50ef41..6c2696227a 100644 --- a/aspnetcore/signalr/hubs/sample/ChatHub.cs +++ b/aspnetcore/signalr/hubs/sample/ChatHub.cs @@ -23,10 +23,10 @@ namespace SignalRChat return Clients.Groups(groups).SendAsync("ReceiveMessage", message); } - public override Task OnConnectedAsync() + public override async Task OnConnectedAsync() { await Groups.AddAsync(Context.User.Identity.Name, "SignalR Users"); - return base.OnConnectedAsync(); + await base.OnConnectedAsync(); } } }