Skip to content

Commit 5875904

Browse files
committed
Skip negotiation in signalr
1 parent cd9c884 commit 5875904

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

SDK.CSharp.Hub/OpenShockHubClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public async ValueTask Setup(HubClientOptions hubClientOptions)
5959
var connectionBuilder = new HubConnectionBuilder()
6060
.WithUrl(url, HttpTransportType.WebSockets, options =>
6161
{
62+
options.SkipNegotiation = true;
6263
options.Headers.Add("OpenShockToken", hubClientOptions.Token);
6364
options.Headers.Add("User-Agent", GetUserAgent());
6465
})

SDK.CSharp.Hub/SDK.CSharp.Hub.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<AssemblyName>OpenShock.SDK.CSharp.Hub</AssemblyName>
1010
<RootNamespace>OpenShock.SDK.CSharp.Hub</RootNamespace>
1111
<Company>OpenShock</Company>
12-
<AssemblyVersion>0.0.24</AssemblyVersion>
13-
<Version>0.0.24</Version>
12+
<AssemblyVersion>0.0.25</AssemblyVersion>
13+
<Version>0.0.25</Version>
1414
<Title>SDK.DotNet.Hub</Title>
1515
<Authors>OpenShock</Authors>
1616
<Description>Extension for OpenShock.SDK.CSharp</Description>

0 commit comments

Comments
 (0)