Files
yt-dlp/yt_dlp/networking/websocket.py
T
f9fb3ce86e [cleanup] Misc (#8598)
Authored by: bashonly, pukkandan, seproDev, Grub4K

Co-authored-by: bashonly <[email protected]>
Co-authored-by: pukkandan <[email protected]>
Co-authored-by: sepro <[email protected]>
2023-12-30 22:27:36 +01:00

24 lines
510 B
Python

from __future__ import annotations
import abc
from .common import RequestHandler, Response
class WebSocketResponse(Response):
def send(self, message: bytes | str):
"""
Send a message to the server.
@param message: The message to send. A string (str) is sent as a text frame, bytes is sent as a binary frame.
"""
raise NotImplementedError
def recv(self):
raise NotImplementedError
class WebSocketRequestHandler(RequestHandler, abc.ABC):
pass