Skip to content

ws_connect

module TikTokLive.client.ws.ws_connect

  • WebcastProxy (TypeAlias) = Union[httpx.Proxy, websockets_proxy.Proxy] — Type hint for a WebcastIterator, which yields a tuple of WebcastPushFrame and ProtoMessageFetchResult. WebcastPushFrame is Optional because the first yielded item is from the initial response which is from /im/fetch (from the sign server), so it is not encapsulated by a WebcastPushFrame.
  • WebcastIterator (TypeAlias)
import TikTokLive.client.ws.ws_connect

TikTokLive/client/ws/ws_connect.py