Websocker obs.connect(`wss://... not working with chrome, opera...

fruf

New Member
I want to develop a websocket interface (HTML+javascript) to pilot OBS remotely.
The remote web page is hosted on a https//: page.
The javascript connects successfully to OBS with obs.connect('ws://....:4455',...) This works for Firefox, Safari, Edge.
But is rejected by Chrome and Opera browsers because they do not trust any connection to ws://... and ask for wss://... instead.

So I modify obs.connect(`ws://... => obs.connect(`wss://...
As a result it just do not work at all, even on the previous working browsers :
"the browser can not connect to the server at the address wss://....:4455" obs-ws.js:2501

My operative system is MAC.
Where is my error please, to solve this?
Thank you.
 

fruf

New Member
OK. Thank you. So for your information, browsers like Chrome, Opera... are not compatible because they refuse to continue for security reasons, mix of secure https:// and unsecure ws://. No proflem when using Mozilla Firefox. Courld wss:// be possible in the future? Thank you.
 

KingKong77

Member
I read somebody asked this question in the WebSocket Dev Channel. The answer was no.
They recommend to use a proxy that supports wss.
This is probably not the answer you're expecting.
 
Top