pusher / pusher-websocket-dotnet

Pusher Channels Client Library for .NET
MIT License
111 stars 113 forks source link

Tls 1.2 support #151

Open JanOudkerk opened 4 months ago

JanOudkerk commented 4 months ago

Our software calls the PusherClient dll from unmanaged code (C++). As a result it uses TLS 1.0 as its security protocol. For some unknown reason this is the default when a .net component is called from unmanaged code.

We resolved this by modifying WebSocket's constructor in Connection.cs to set it to SslProtocols.Tls12.

This is a quick fix that works for us. Probably better to put this setting in the PusherOptions object?

image

JanOudkerk commented 4 months ago

We implemented these changes in fork https://github.com/JanOudkerk/pusher-websocket-dotnet.git (I wasn't succesful in sending a pull request to this repo)