File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ def on_data(self, raw_data):
68
68
elif 'disconnect' in data :
69
69
if self .on_disconnect (data ['disconnect' ]) is False :
70
70
return False
71
+ elif 'warning' in data :
72
+ if self .on_warning (data ['warning' ]) is False :
73
+ return False
71
74
else :
72
75
logging .error ("Unknown message type: " + str (raw_data ))
73
76
@@ -99,7 +102,7 @@ def on_friends(self, friends):
99
102
return
100
103
101
104
def on_limit (self , track ):
102
- """Called when a limitation notice arrvies """
105
+ """Called when a limitation notice arrives """
103
106
return
104
107
105
108
def on_error (self , status_code ):
@@ -117,6 +120,10 @@ def on_disconnect(self, notice):
117
120
https://dev.twitter.com/docs/streaming-apis/messages#Disconnect_messages_disconnect
118
121
"""
119
122
return
123
+
124
+ def on_warning (self , notice ):
125
+ """Called when a disconnection warning message arrives"""
126
+ return
120
127
121
128
122
129
class ReadBuffer (object ):
You can’t perform that action at this time.
0 commit comments