Skip to content

send

Send a message to the WebSocket

Method of WebcastWSClient.

Send a message to the WebSocket

async def send(message: Union[bytes, Message]) -> None
  • message (Union[bytes, Message]) — Message to send to the WebSocket connection
from TikTokLive.client.ws.ws_client import WebcastWSClient

TikTokLive/client/ws/ws_client.py:68