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)
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()