Skip to content

Commit 37a4628

Browse files
committed
fixed aspnetboilerplate#5529: Allow UserId being null when a SignalR Hub is connected
1 parent 53396a4 commit 37a4628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Abp.AspNetCore.SignalR/AspNetCore/SignalR/Hubs/OnlineClientHubBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected virtual IOnlineClient CreateClientForCurrentConnection()
6060
Context.ConnectionId,
6161
GetIpAddressOfClient(),
6262
Context.GetTenantId(),
63-
Context.GetUserId()
63+
Context.GetUserIdOrNull()
6464
);
6565
}
6666

0 commit comments

Comments
 (0)