<filename>tools/wave/data/http_polling_event_listener.py<gh_stars>1000+
from .event_listener import EventListener

class HttpPollingEventListener(EventListener):
    def __init__(self, dispatcher_token, event):
        super(HttpPollingEventListener, self).__init__(dispatcher_token)
        self.event = event
        self.message = None

    def send_message(self, message):
        self.message = message
        self.event.set()

<filename>tools/wave/data/http_polling_event_listener.py<gh_stars>1000+
from .event_listener import EventListener

class HttpPollingEventListener(EventListener):
    def __init__(self, dispatcher_token, event):
        super(HttpPollingEventListener, self).__init__(dispatcher_token)
        self.event = event
        self.message = None

    def send_message(self, message):
        self.message = message
        self.event.set()
