1 from __future__
import annotations
5 from .common
import RequestHandler
, Response
8 class WebSocketResponse(Response
):
10 def send(self
, message
: bytes |
str):
12 Send a message to the server.
14 @param message: The message to send. A string (str) is sent as a text frame, bytes is sent as a binary frame.
16 raise NotImplementedError
19 raise NotImplementedError
22 class WebSocketRequestHandler(RequestHandler
, abc
.ABC
):