socket.io-client-dart
socket.io-client-dart copied to clipboard
domain https errore for flutter web
hi i have problem in domain https cloudflare
If my site domain is http, the socket will be connected But if the domain is https, the socket will not be connected I connect the socket with ip This problem exists in the web version flutter for me
Can you attach some more information? such as the version of socket.io client you're using and how you're connecting? and maybe the cloudflare endpoint you're using.
i use socket_io_client 1.0.2 and domain https cloudflare set in socket.io server const httpsServer = https.createServer({ "key" : fs.readFileSync( __dirname+"/PrivateKey.key", 'utf8' ), "cert": fs.readFileSync( __dirname+"/Certificate.pem", 'utf8' ), "ca" : fs.readFileSync( __dirname+"/ca.pem" , 'utf8') }); good in mobile ,desktop but flutter web not working
i have. this error in developer tools chrome main.dart.js:126148 WebSocket connection to 'wss://example.com/socket.io/?EIO=3&transport=websocket' failed: WebSocket is closed before the connection is established.
I have the same issue, any updates?