Tweet's timelines are possible, a way to restart stream endpoint has been created

This commit is contained in:
2015-02-12 10:29:51 -06:00
parent 5eb4f74242
commit de7118caf4
6 changed files with 95 additions and 20 deletions

View File

@@ -318,4 +318,12 @@ class Session(object):
try:
urllib2.urlopen("http://74.125.228.231", timeout=5)
except urllib2.URLError:
pub.sendMessage("stream-error", session=self.session_id)
pub.sendMessage("stream-error", session=self.session_id)
def remove_stream(self, stream):
if stream == "timelinesStream":
self.timelinesStream.disconnect()
del self.timelinesStream
else:
self.main_stream.disconnect()
del self.main_stream