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

MQTT: support MQTT over WebSocket #2433

Closed
Etran-H opened this issue Aug 12, 2021 · 2 comments · Fixed by #2735
Closed

MQTT: support MQTT over WebSocket #2433

Etran-H opened this issue Aug 12, 2021 · 2 comments · Fixed by #2735
Assignees

Comments

@Etran-H
Copy link

Etran-H commented Aug 12, 2021

Feature Request

Use Case:

Proposed Change:

support http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718127
mqtt { port: 1883 ws_port: 9001 }

Who Benefits From The Change(s)?

The web application does not support native TCP connection.
MQTT over WebSockets allows you to receive MQTT data directly into a web browser.

Alternative Approaches

@kozlovic
Copy link
Member

Yes, it is in the roadmap. Not sure yet if mqtt{} block will have its own websocket port, or if we are going to do like leafnodes that can connect to the general websocket{} block, since you can limit users type of connections. So it is possible that you would have to connect your mqtt client to something like wss://<nats server host>:<websocket port>/mqtt. Again, not sure yet which direction I'll go.

kozlovic added a commit that referenced this issue Dec 6, 2021
Clients will need to connect to the Websocket port and have `/mqtt`
as the URL path.

Resolves #2433

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic
Copy link
Member

kozlovic commented Dec 7, 2021

Closed with #2735

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

Successfully merging a pull request may close this issue.

3 participants