-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Connection to Zilla MQTT server over WebSocket fails from web browser.
The same javascript code executed on nodejs, outside a web browser, connects successfully.
To Reproduce
To quickly reproduce the issue I created a GitHub repo with a compose.yaml file that starts Zilla with Kafka and a simple index.html page that uses MQTT.js to connect to the MQTT server. All the steps to reproduce the problem are described in the README:
https://github.com/epieffe/zilla-mqtt-ws-test
In short:
- Start Zilla with MQTT and WebSocket bindings
- Connect to the MQTT server from a web browser
- The connection fails
Expected behavior
The web browser successfully connects to Zilla MQTT server.
Additional context
I ran the same index.html with the EMQX MQTT broker and it successfully connects, both on Firefox and Google Chrome.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working