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 v3 subscribe/unsubscribe #64

Closed
Antiarchitect opened this issue Oct 6, 2021 · 6 comments
Closed

MQTT v3 subscribe/unsubscribe #64

Antiarchitect opened this issue Oct 6, 2021 · 6 comments

Comments

@Antiarchitect
Copy link

As I can see the previous crate https://docs.rs/actix-mqtt/0.2.3/actix_mqtt/struct.MqttServer.html#method.subscribe had the ability to define subscribe and unsubscribe handlers. I hope ntex-mqtt also can. Any help is appreciated.

P.S. BTW Thank you so much @fafhrd91 for the previous answer - my mqtt-to-amqp proxy prototype works as PoC!

@Antiarchitect
Copy link
Author

Digging deeper I found https://docs.rs/ntex-mqtt/0.7.2/ntex_mqtt/v3/struct.MqttServer.html#method.control method which seems the place of all this stuff handling.

@Antiarchitect
Copy link
Author

It would be nice though to see this method used somewhere in examples :)

@fafhrd91
Copy link
Collaborator

fafhrd91 commented Oct 7, 2021

@Antiarchitect
Copy link
Author

I need a v3 variant. But I think I can dig it myself.

@fafhrd91
Copy link
Collaborator

fafhrd91 commented Oct 7, 2021

should similar. mostly response types, check api doc for difference.

@Antiarchitect
Copy link
Author

Thank you so much, Nikolay!

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

No branches or pull requests

2 participants