SMG
SMG

Reputation: 23

Can I use native mqtt to connect to my mqtt broker without the use of websockets?

I have a mqtt broker which does not support websocket connection. I need to write an HTML webpage that will connect to the broker and publish a message string on it. Is it possible to not use websockets through my web page and still connect and publish data? If so, how can I do that?

Upvotes: 0

Views: 740

Answers (1)

hardillb
hardillb

Reputation: 59608

No, you can not connect to anything from with in a browser with anything other than HTTP or WebSockets.

A possible solution is to set up a separate WebSockets to MQTT bridge between the web page and the broker.

Upvotes: 1

Related Questions