예제 #1
0
 def stream_listener(self):
     if not self.app:
         self.app = apputil.apputil(self.app_id, self.app_key)
     self.app.monitor_streams(self.stream_notification)
예제 #2
0
 def stream_already_available(self, stream_name):
     if not self.app:
         self.app = apputil.apputil(self.app_id)
     return stream_name in self.app.stream_names()