I'm trying to use websockets in a web page with javascript, ('ws://localhost:9090') but get the following error from firefox:
"Caught exception while dispatching event:
The operation is insecure."
If I change the url of the websocket to 'wss://localhost:9090' I get another error:
Firefox can't establish a connection to the server at wss://localhost:9090/.
The javascript I'm working on is meant to communicate with the ros operating system on a robot that has it installed. How can I enable websockets in this special situation? I was using google chrome because of the limitations on firefox, but after a recent update of chrome, it seems impossible there too. On chrome I get another error.