We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unity Error,how to pass SSL errors Assets\Socket_Manager.cs(107,28): error CS0029: Cannot implicitly convert type 'System.Net.WebSockets.ClientWebSocket' to 'SocketIOClient.Transport.IClientWebSocket' client = new SocketIOUnity("wss://xxxx", new SocketIOOptions { ReconnectionAttempts = 5, }); client.ClientWebSocketProvider = () => { var clientWebSocket = new ClientWebSocket(); clientWebSocket.Options.RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { Console.WriteLine("SslPolicyErrors: " + sslPolicyErrors); return true; }; return clientWebSocket; };
The text was updated successfully, but these errors were encountered:
The new version was released. if you want to ignore ssl validation:
var io = new SocketIO("https://localhost:11404", new SocketIOOptions { RemoteCertificateValidationCallback = (_, _, _, _) => { return true; } });
Sorry, something went wrong.
I use this code ,still cannot coonect to the Socket Server。how can i fix?
Sorry. I'm too late.
First try to update lib to latest version, if you still blocked by compiling errors. please show error messages
No branches or pull requests
The text was updated successfully, but these errors were encountered: