Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websockets and libmosquitto 2.0.15 #2861

Open
peter-winter opened this issue Jul 26, 2023 · 1 comment
Open

Websockets and libmosquitto 2.0.15 #2861

peter-winter opened this issue Jul 26, 2023 · 1 comment

Comments

@peter-winter
Copy link

peter-winter commented Jul 26, 2023

Is there a way to make a client based on libmosquitto to connect to a broker running over websockets?
I confirm that mqtt-explorer works just fine with the broker, however both mosquitto_sub, mosquitto_pub (and also my own client built with libmosquitto) won't connect.

They all fail with the same error:
Error: A network protocol error occurred when communicating with the broker.

Is there something in C API that I'm missing?

@richardash1981
Copy link

The last comment on #1540 says that websocket support is available in the client in the "develop" branch in Git, but not in the 2.0.x release series ("develop" is targeted to become 2.1.x).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants