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

Need help #2

Closed
daes10 opened this issue Jan 5, 2022 · 5 comments
Closed

Need help #2

daes10 opened this issue Jan 5, 2022 · 5 comments

Comments

@daes10
Copy link

daes10 commented Jan 5, 2022

Thank you so for this plugin. A waited a long time for such a plugin on my streamdeck.

But how I enable websocket on my mosquitto broker?

I tried it, but why the button doesnt work?

I dont find how I can configure my mosquitto to enable websockets.
I heard something about configuration file change, but my broker dont use a file. I think it uses the default.

@daes10
Copy link
Author

daes10 commented Jan 7, 2022

So I had a lot of Problem I now make it happen throught simple http commands.

But I hope you can more describe, how to properly set up the broker for websocket support.

@pherting
Copy link
Owner

pherting commented Jan 8, 2022

Hey @daes10 sorry for the late Answer!

You need to start mosquitto with a config like this:
mosquitto -c /etc/mosquitto/mosquitto.conf

In your config you need a second listener for WebSockets like this:
listener 1883
listener 9001
protocol websockets

Hope it is not to late xD

Thanks for the hint that i create a better Readme!

@daes10
Copy link
Author

daes10 commented Jan 18, 2022

@pherting ok thanks for your help! I will try... but not for now. For now it worked with http. But when i have enough time for it, i will try this. You will hear from me.... ;)

@mzac
Copy link

mzac commented Jan 20, 2022

I was trying to get it working with Home Assistant and the Mosquitto Broker integration. I had to use port 1884 which is defined in the integration's config:

image

@pherting
Copy link
Owner

Thanks @mzac for this screenshot!
This is exactly what i mean, you need to configure Mosquitto do listen also to the other ports with WebSocket enabled and optional over secure SSL.

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

3 participants