Skip to content

WebcastWSClient

Websocket client responsible for connections to TikTok

Websocket client responsible for connections to TikTok

class WebcastWSClient
WebcastWSClient(
ws_kwargs: Optional[dict] = None,
ws_proxy: Optional[WebcastProxy] = None,
)

Initialize WebcastWSClient

  • ws_kwargs (Optional[dict], default None) — Overrides for the websocket connection
  • ws_proxy (Optional[WebcastProxy], default None)
  • DEFAULT_PING_INTERVAL (float) = 5.0
  • ws (property, Optional[WebSocketClientProtocol]) — Get the current WebSocketClientProtocol
  • connected (property, bool) — Check if the WebSocket is open
from TikTokLive.client.ws.ws_client import WebcastWSClient

TikTokLive/client/ws/ws_client.py:16