NativeWebSocket icon indicating copy to clipboard operation
NativeWebSocket copied to clipboard

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

Open adityagalanga opened this issue 3 years ago • 0 comments

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 ?

adityagalanga avatar Mar 23 '22 08:03 adityagalanga