Skip to content

Conversation

arjenroodselaar
Copy link

Fix messageId variable name when sending unsubscribe requests. Allow sending multiple topics in a single request. This does change the API, but is pretty much in line with subscriptionReceived() and subackReceived().

@adamvr
Copy link
Owner

adamvr commented Sep 9, 2014

Could we have it support both an array and a single string? Something like

if type(topics) is str:
    topics = [topics]

@arjenroodselaar
Copy link
Author

Sure, that looks reasonable. I am not a huge fan of these variable "type signatures", but the alternative would be to introduce a wrapper method which is not that great either. Thanks for having a look!

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 this pull request may close these issues.

2 participants