{"action":"created","issue":{"url":"https://api.github.com/repos/ryanmcgrath/twython/issues/291","repository_url":"https://api.github.com/repos/ryanmcgrath/twython","labels_url":"https://api.github.com/repos/ryanmcgrath/twython/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/ryanmcgrath/twython/issues/291/comments","events_url":"https://api.github.com/repos/ryanmcgrath/twython/issues/291/events","html_url":"https://github.com/ryanmcgrath/twython/issues/291","id":24183450,"number":291,"title":"Help with streaming api disconnect() method","user":{"login":"ErrorSoul","id":3595483,"avatar_url":"https://avatars.githubusercontent.com/u/3595483?v=3","gravatar_id":"","url":"https://api.github.com/users/ErrorSoul","html_url":"https://github.com/ErrorSoul","followers_url":"https://api.github.com/users/ErrorSoul/followers","following_url":"https://api.github.com/users/ErrorSoul/following{/other_user}","gists_url":"https://api.github.com/users/ErrorSoul/gists{/gist_id}","starred_url":"https://api.github.com/users/ErrorSoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErrorSoul/subscriptions","organizations_url":"https://api.github.com/users/ErrorSoul/orgs","repos_url":"https://api.github.com/users/ErrorSoul/repos","events_url":"https://api.github.com/users/ErrorSoul/events{/privacy}","received_events_url":"https://api.github.com/users/ErrorSoul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-12-12T14:56:11Z","updated_at":"2016-02-27T00:23:57Z","closed_at":null,"body":"Hi there. I have some problem with disconnect(). How i can stop my stream manually with disconnect()? how i should design my program that i can to send self.connected= False inside MyStreamer? I understand that stream.user() is infinity loop  and i have no idea. \r\n```python\r\n\r\nclass MyStreamer(TwythonStreamer):\r\n    def on_success(self, data):\r\n        if 'text' in data:\r\n            print data['text'].encode('utf-8')\r\n\r\n    def on_error(self, status_code, data):\r\n        print status_code\r\n\r\nstream = MyStreamer(APP_KEY, APP_SECRET,\r\n                    OAUTH_TOKEN, OAUTH_TOKEN_SECRET)\r\nstream.user()\r\n```"},"comment":{"url":"https://api.github.com/repos/ryanmcgrath/twython/issues/comments/189536838","html_url":"https://github.com/ryanmcgrath/twython/issues/291#issuecomment-189536838","issue_url":"https://api.github.com/repos/ryanmcgrath/twython/issues/291","id":189536838,"user":{"login":"sharkwheels","id":6801378,"avatar_url":"https://avatars.githubusercontent.com/u/6801378?v=3","gravatar_id":"","url":"https://api.github.com/users/sharkwheels","html_url":"https://github.com/sharkwheels","followers_url":"https://api.github.com/users/sharkwheels/followers","following_url":"https://api.github.com/users/sharkwheels/following{/other_user}","gists_url":"https://api.github.com/users/sharkwheels/gists{/gist_id}","starred_url":"https://api.github.com/users/sharkwheels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharkwheels/subscriptions","organizations_url":"https://api.github.com/users/sharkwheels/orgs","repos_url":"https://api.github.com/users/sharkwheels/repos","events_url":"https://api.github.com/users/sharkwheels/events{/privacy}","received_events_url":"https://api.github.com/users/sharkwheels/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T00:23:57Z","updated_at":"2016-02-27T00:23:57Z","body":"I sort of have this issue as well. Mainly if the connection terminates on error, does it try to auto reconnect? Do I need to create a method to try and reconnect it? If that's the case could an example be included into the documentation? (sorry if this is a boring question addition)."}}