From e28dc78e96293932d24f524d394faa7a7bfa3783 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 6 Apr 2024 20:52:38 +0200 Subject: [PATCH] [backend/signalr] Fix build warnings due to incomplete StreamingHub stub --- Iceshrimp.Backend/Hubs/StreamingHub.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Backend/Hubs/StreamingHub.cs b/Iceshrimp.Backend/Hubs/StreamingHub.cs index 4c696204..03c4c8df 100644 --- a/Iceshrimp.Backend/Hubs/StreamingHub.cs +++ b/Iceshrimp.Backend/Hubs/StreamingHub.cs @@ -15,7 +15,7 @@ public class StreamingHub : Hub, IStreamingHubServer public override async Task OnConnectedAsync() { await base.OnConnectedAsync(); - var userId = Context.UserIdentifier; - //Clients.User(userId); + var userId = Context.UserIdentifier ?? throw new Exception("UserIdentifier must not be null at this stage"); + await Clients.User(userId).ReceiveMessage("SignalR", "Device connected"); } } \ No newline at end of file