Open kukirokuk opened 3 years ago
facing same issue.
Are you running a Firewall etc.?
No, I am working on localhost and have no firewall restriction.
Please fix the "cors" on the server side:
//const wss = new WebSocket.Server({ server: httpsServer }); const wss = new WebSocket.Server({ server: httpsServer, verifyClient: (info) => { const origin = info.origin; // Allow all origins for now, for debugging purposes: return true; // For production, you should check the origin, as shown previously. } });
Hope this helps!
same issue with this, i've also added cors but the error seem to persist
I switched my ws server to http and altered the url in the clien t, now it seems to work fine
both Chrome and Safari was not happy with certificate, so refactoring it to use http instead of https helped
I try to open localhost:8080 and there is websocket connection fail in chrome console:
index.js:12 WebSocket connection to 'wss://localhost:3000/' failed
The server is started and there isSocket Server listening on port 3000
message. I have changed websocket port, allowed unsecure connection in chrome site settings but nothing works. May be this is relevant, I have the same error when trying open official mediasoud demo page https://v3demo.mediasoup.org