paho.mqtt.javascript icon indicating copy to clipboard operation
paho.mqtt.javascript copied to clipboard

MQTT client connection fail in firefox

Open ghost opened this issue 7 years ago • 2 comments

I try to connect with websockets to my broker (mosquitto). This works in Chrome (and in Edge), but in Firefox I get following error:

Firefox can’t establish a connection to the server at ws://:/ws.

Then, the onFailure callback gets called with this parameter: Object { invocationContext: undefined, errorCode: 7, errorMessage: "AMQJS0007E Socket error:undefined." }

ghost avatar Feb 09 '18 05:02 ghost

Hi @ramyalathaseethala, Is the connection to the broker or the web page being served over HTTPS? We have seen issues in the past where Firefox is very strict with mixed content and this could be related..

jpwsutton avatar Mar 26 '18 14:03 jpwsutton

I'm having the same issue here and am connecting over HTTP. Thanks for any help you can provide.

tyler-suderman-kr avatar Dec 16 '20 22:12 tyler-suderman-kr