summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wave/data/http_polling_client.py
blob: 3235569a9891a73c4a704d49ee43ce89eacb3793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# mypy: allow-untyped-defs

from .client import Client


class HttpPollingClient(Client):
    def __init__(self, session_token, event):
        super().__init__(session_token)
        self.event = event

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