Skip to content

Can't handshake with WSS #6

Open
@CodeSpartan

Description

@CodeSpartan

Error log:

WS closed with code: TlsHandshakeFailure
UnityEngine.Debug:Log(Object)
<>c:<Start>b__1_2(WebSocketCloseCode) (at Assets/Scripts/WebSocketDemo.cs:40)
HybridWebSocket.WebSocket:<.ctor>b__13_3(Object, CloseEventArgs) (at Assets/Plugins/WebSocket.cs:495)
WebSocketSharp.Ext:Emit(EventHandler`1, Object, CloseEventArgs) (at E:/Repos/WebsocketsSharp/websocket-sharp/Ext.cs:1269)

In sta/websocket-sharp, this is fixed by adding this line:
ws.SslConfiguration.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12;

Is it possible to fix this in this library? I could add this line myself in the constructor, I'm just not sure what's the correct way to treat it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions