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

websocket listener on localhost #1764

Closed
gerdstolpmann opened this issue Jul 30, 2020 · 1 comment
Closed

websocket listener on localhost #1764

gerdstolpmann opened this issue Jul 30, 2020 · 1 comment

Comments

@gerdstolpmann
Copy link

This does not work (mosquitto-1.6.10 on Mac):

listener 9025 localhost
protocol websockets

It just does not create the socket. Omitting localhost fixes it (but leaves the socket unprotected).

I'm using this in a testing scenario, and don't want to set passwords for protection.

@ralight
Copy link
Contributor

ralight commented Jul 30, 2020

Due to vagaries of the websockets library, it's not currently possible to bind to a hostname when using websockets (this is mentioned in the mosquitto.conf documentation). Using listener 9025 127.0.0.1 should work just fine.

@ralight ralight closed this as completed Aug 12, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants