Add Missing Parameter For WebSocket4Net Constructor (#968)
* Add missing param to constructor This should fix `15:02:44 Gateway System.MissingMethodException: Method not found: 'Void WebSocket4Net.WebSocket..ctor(System.String, System.String, System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>, System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>, System.String, System.String, WebSocket4Net.WebSocketVersion, System.Net.EndPoint)'.` * Bump WS4N to latest stable
This commit is contained in:
committed by
Christopher F
parent
4edbd8d4b9
commit
8537924d9b
@@ -10,6 +10,6 @@
|
|||||||
<ProjectReference Include="..\Discord.Net.Core\Discord.Net.Core.csproj" />
|
<ProjectReference Include="..\Discord.Net.Core\Discord.Net.Core.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="WebSocket4Net" Version="0.15.0" />
|
<PackageReference Include="WebSocket4Net" Version="0.15.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace Discord.Net.Providers.WS4Net
|
|||||||
_cancelTokenSource = new CancellationTokenSource();
|
_cancelTokenSource = new CancellationTokenSource();
|
||||||
_cancelToken = CancellationTokenSource.CreateLinkedTokenSource(_parentToken, _cancelTokenSource.Token).Token;
|
_cancelToken = CancellationTokenSource.CreateLinkedTokenSource(_parentToken, _cancelTokenSource.Token).Token;
|
||||||
|
|
||||||
_client = new WS4NetSocket(host, customHeaderItems: _headers.ToList())
|
_client = new WS4NetSocket(host, "", customHeaderItems: _headers.ToList())
|
||||||
{
|
{
|
||||||
EnableAutoSendPing = false,
|
EnableAutoSendPing = false,
|
||||||
NoDelay = true,
|
NoDelay = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user