SocketIOClient 3.1.2 in Unity fails to compile with SSL bypass for WSS (Tailscale self-signed cert).
- SocketIOClient: 3.1.2
- Unity 6.3 LTS (Android/XR target)
- Server: Socket.IO wss:// with self-signed cert
Current workarounds fail:
1.ServicePointManager.ServerCertificateValidationCallback → Doesn't work for WSS upgrade
2.HTTPS works fine with Unity BypassCertificateHandler
Question: What are the exact SocketIOOptions properties available in 3.1.2 for Unity WSS + SSL bypass?
This is my snippet code with the options of the socket:
"
var options = new SocketIOOptions
{
ConnectionTimeout = TimeSpan.FromSeconds(APIStrings.webSocketTimeoutSeconds),
Transport = SocketIOClient.Transport.TransportProtocol.WebSocket,
Reconnection = true,
ReconnectionAttempts = 10,
ReconnectionDelay = 1000,
RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true
};
_socket = new SocketIOClient.SocketIO(https://100.82.42.53:5090, options);
"
I have also tried "wss://100.82.42.53:5090" instead of "https://100.82.42.53:5090" but nothing work