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

Specify QoS for MQTT syntax #275

Closed
SebastienGllmt opened this issue Jun 10, 2024 · 2 comments
Closed

Specify QoS for MQTT syntax #275

SebastienGllmt opened this issue Jun 10, 2024 · 2 comments

Comments

@SebastienGllmt
Copy link

In the websocket docs, it mentions MQTT syntax being accepted for subscriptions. However, it mentions nothing about how this MQTT support is implemented internally. This matters because MQTT defines 3 QoS levels that have different implications for how clients should be written

It's also possible that by MQTT syntax you mean you're just using the MQTT syntax and now actually following the protocol at all, but even in this case it would be nice if this was explicitly mentioned and possibly what QoS level the implementation maps to

@kartikk221
Copy link
Owner

Hi, I am not exactly sure about that myself since we simply wrap around uWebsockets.js and uWS states in its code and docs that it supports MQTT rules and syntax. https://github.com/uNetworking/uWebSockets/blob/01058d90e9d092c2d6551956d7e0785e0e94ff21/src/WebSocket.h#L263-L285 You would have to follow up on this within the uWS repository as your topic string is fed directly to uWS.

@SebastienGllmt
Copy link
Author

I got an answer from the uWebSockets team: uNetworking/uWebSockets#1753

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