Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Unsubscribe message #83

Open
ivanovaleksey opened this issue Mar 19, 2018 · 3 comments
Open

Unsubscribe message #83

ivanovaleksey opened this issue Mar 19, 2018 · 3 comments

Comments

@ivanovaleksey
Copy link

Hello, I would like to have dynamic subscriptions.

On certain action subscription should be created, it is done by MqttClient::subscribe.
And on another action this subscription should be deleted (as I understand MQTT has UNSUBSCRIBE message for that).

And I just realized that I can't see any method for unsubscribing.

Is there any solution for this?

Thanks.

@TheBestJohn
Copy link
Contributor

Unsubscribe does have an implementation in the mqtt311 lib and I have been able to get a branch sending and recieving unsubacks. I think I may have to do some more logic to let rumqtt know that i've unsubbed but it looks as if I no longer get the pubs from that channel.

@bachrc
Copy link

bachrc commented Dec 10, 2019

We could close this issue now this is resolved?

@alepez
Copy link

alepez commented Dec 10, 2019

We could close this issue now this is resolved?

Actually, with mqtt311 0.2 (the last one) it hits unimplemented. It is an mqtt311 issue but at the moment if you call rumqtt::MqttClient::unsubscribe it panics.

At the moment it is not yet implemented, try callng rumqtt::MqttClient::unsubscribe, it will hit unimplemented here:

_ => unimplemented!(),

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

4 participants