websocket-sharp
websocket-sharp copied to clipboard
Websocket state: Closed
I am trying to connect to a local application with tls 1.3.
This is my code:
using (var ws = new WebSocket("wss://localhost:55400/"))
{
ws.OnMessage += (sender, e) =>
OnMessage(sender, e);
ws.SslConfiguration.ClientCertificates = Authentification.CertificateCollection;
ws.SslConfiguration.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls13;
ws.Connect();
WebSocketState state = ws.ReadyState;
ws.Send(context);
//Console.ReadKey(true);
}
Wireshark states that some connection attempt is mate bu no cleint hello / handshake
plattform is windows 10 21H2
error message: An Exception has ocurred while connecting (code 1015) log: none connection: closed