Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] WebSocket Only listener


Built 2.0.14 from source, enabled WebSocket support on Ubuntu 20.04 (fully updated)

Following config file fails at startup:

allow_anonymous true
listener 1884
protocol websockets

mosquitto -c ./test.conf
1656419034: mosquitto version 2.0.14 starting
1656419034: Config loaded from ./test.conf.
1656419034: Opening websockets listen socket on port 1884.
1656419034: Error: Unable to start any listening sockets, exiting.

Adding a native MQTT listener works:

allow_anonymous true
listener 1883 127.0.0.1
listener 1884
protocol websockets

mosquitto -c ./test.conf
1656419113: mosquitto version 2.0.14 starting
1656419113: Config loaded from ./test.conf.
1656419113: Opening ipv4 listen socket on port 1883.
1656419113: Opening websockets listen socket on port 1884.
1656419113: mosquitto version 2.0.14 running

Should I be able to start with mosquitto only listening for WebSocket Connections?

https://github.com/eclipse/mosquitto/issues/2578

Ben
--
https://www.hardill.me.uk/wordpress
https://github.com/hardillb
https://about.me/hardillb
https://flickr.com/photos/hardillb/
https://keybase.io/hardillb


Back to the top