{"action":"created","issue":{"url":"https://api.github.com/repos/Weswit/Lightstreamer-example-StockList-client-python/issues/7","labels_url":"https://api.github.com/repos/Weswit/Lightstreamer-example-StockList-client-python/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Weswit/Lightstreamer-example-StockList-client-python/issues/7/comments","events_url":"https://api.github.com/repos/Weswit/Lightstreamer-example-StockList-client-python/issues/7/events","html_url":"https://github.com/Weswit/Lightstreamer-example-StockList-client-python/issues/7","id":109161139,"number":7,"title":"unsubscribe all subscriptions","user":{"login":"femtotrader","id":5049737,"avatar_url":"https://avatars.githubusercontent.com/u/5049737?v=3","gravatar_id":"","url":"https://api.github.com/users/femtotrader","html_url":"https://github.com/femtotrader","followers_url":"https://api.github.com/users/femtotrader/followers","following_url":"https://api.github.com/users/femtotrader/following{/other_user}","gists_url":"https://api.github.com/users/femtotrader/gists{/gist_id}","starred_url":"https://api.github.com/users/femtotrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femtotrader/subscriptions","organizations_url":"https://api.github.com/users/femtotrader/orgs","repos_url":"https://api.github.com/users/femtotrader/repos","events_url":"https://api.github.com/users/femtotrader/events{/privacy}","received_events_url":"https://api.github.com/users/femtotrader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T19:23:22Z","updated_at":"2015-10-02T16:13:05Z","closed_at":null,"body":"Hello,\r\n\r\nit may be useful (to avoid to do it on the user/dev side to be able to unsubscribe all subscriptions (before disconnecting)\r\n\r\n    def unsubscribe(self, subcription_key=None):\r\n        \"\"\"Unregister the Subscription associated to the\r\n        specified subscription_key.\r\n        if no subcription_key is given it unsubscribe all.\r\n        \"\"\"\r\n        if subcription_key is None:\r\n            subscriptions = self._subscriptions.copy() # To avoid a RuntimeError: dictionary changed size during iteration\r\n            for subcription_key in subscriptions:\r\n                self._unsubscribe(subcription_key)\r\n        else:\r\n            self._unsubscribe(subcription_key)\r\n\r\nSo instead of keeping `sub_key` and do\r\n\r\n    lightstreamer_client.unsubscribe(sub_key)\r\n\r\nwe will be able to do\r\n\r\n    lightstreamer_client.unsubscribe()\r\n\r\nKind regards"},"comment":{"url":"https://api.github.com/repos/Weswit/Lightstreamer-example-StockList-client-python/issues/comments/145074124","html_url":"https://github.com/Weswit/Lightstreamer-example-StockList-client-python/issues/7#issuecomment-145074124","issue_url":"https://api.github.com/repos/Weswit/Lightstreamer-example-StockList-client-python/issues/7","id":145074124,"user":{"login":"gfinocchiaro","id":8842677,"avatar_url":"https://avatars.githubusercontent.com/u/8842677?v=3","gravatar_id":"","url":"https://api.github.com/users/gfinocchiaro","html_url":"https://github.com/gfinocchiaro","followers_url":"https://api.github.com/users/gfinocchiaro/followers","following_url":"https://api.github.com/users/gfinocchiaro/following{/other_user}","gists_url":"https://api.github.com/users/gfinocchiaro/gists{/gist_id}","starred_url":"https://api.github.com/users/gfinocchiaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfinocchiaro/subscriptions","organizations_url":"https://api.github.com/users/gfinocchiaro/orgs","repos_url":"https://api.github.com/users/gfinocchiaro/repos","events_url":"https://api.github.com/users/gfinocchiaro/events{/privacy}","received_events_url":"https://api.github.com/users/gfinocchiaro/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T16:13:05Z","updated_at":"2015-10-02T16:13:05Z","body":"Hi,\r\n\r\nsuch feature would not be compliant with the actual Lightstreamer Unified Client API model.\r\nPlease have a look [here](http://www.lightstreamer.com/docs/client_javascript_uni_api/LightstreamerClient.html#unsubscribe)\r\nAnyway, in the near future we will take in consideration your proposal in order to extend the API model. Thanks a lot for your suggestion!"}}