[backend/signalr] Fix build warnings due to incomplete StreamingHub stub
This commit is contained in:
parent
3286952130
commit
e28dc78e96
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ public class StreamingHub : Hub<IStreamingHubClient>, IStreamingHubServer
|
||||||
public override async Task OnConnectedAsync()
|
public override async Task OnConnectedAsync()
|
||||||
{
|
{
|
||||||
await base.OnConnectedAsync();
|
await base.OnConnectedAsync();
|
||||||
var userId = Context.UserIdentifier;
|
var userId = Context.UserIdentifier ?? throw new Exception("UserIdentifier must not be null at this stage");
|
||||||
//Clients.User(userId);
|
await Clients.User(userId).ReceiveMessage("SignalR", "Device connected");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue