Provide a low-level wrapper for Tornado Websockets that adds locking and smooths some compatibility issues.
- class WebSocketClientConnectionWrapper(socket: WebSocketClientConnection)[source]#
Used for compatibility across Tornado versions and to add write_lock
- read_message(callback: Callable[..., Any] | None = None) Awaitable[None | str | bytes] [source]#
Read a message from websocket and execute a callback.