def __init__(
        self, uri: str = "ws://localhost:8000/ws", mode: DataMode = DataMode.JSON
    ):
        """Constructor method.

        Args:
            uri: The URI of the websocket.
            mode: The data mode to use.
        """
        self.uri = uri
        self.mode = mode
        self.websocket = None
Constructor method.

        Args:
            uri: The URI of the websocket.
            mode: The data mode to use.
        
lanarky/clients.py