endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.27k stars 161 forks source link

The WebSocket request or response contained unsupported header(s). #64

Open adityagalanga opened 2 years ago

adityagalanga commented 2 years ago

Hello there! I'm using this plugin for my project, and then I get errors when using 'ws' and 'wss'. When I use ws , the socket is stable and working. But when I change it to wss , socket gives response error like this

image

Error : The WebSocket request or response contains an unsupported header. Close : Abnormal

is there something wrong with the socket ? or something wrong with my wss server ? i dont know how to fix this, because i cant get more log for this error.

Thank you !

[edit] Im using Unity 2020.3.2f1 free And im already check another plugin, and its work when add this on another plugin code

ws.SslConfiguration.EnabledSslProtocols = SslProtocolsExtensions.Tls12

But how to place this code to this plugin ?