Signature
Section titled “Signature”public class TikTokWebSocketClient implements LiveSocketClientConstructors
Section titled “Constructors”TikTokWebSocketClient
Section titled “TikTokWebSocketClient”public TikTokWebSocketClient(LiveClientSettings clientSettings, LiveMessagesHandler messageHandler, LiveEventsHandler tikTokEventHandler, WebSocketHeartbeatTask heartbeatTask)Parameters
Section titled “Parameters”clientSettings(LiveClientSettings)messageHandler(LiveMessagesHandler)tikTokEventHandler(LiveEventsHandler)heartbeatTask(WebSocketHeartbeatTask)
Methods
Section titled “Methods”connectDefault
Section titled “connectDefault”public void connectDefault()connectProxy
Section titled “connectProxy”public void connectProxy(ProxyClientSettings proxySettings)Parameters
Section titled “Parameters”proxySettings(ProxyClientSettings)
isConnected
Section titled “isConnected”public boolean isConnected()Returns
Section titled “Returns”boolean
@Overridepublic void start(LiveConnectionData.Response connectionData, LiveClient liveClient)Parameters
Section titled “Parameters”connectionData(LiveConnectionData.Response)liveClient(LiveClient)
public void stop(LiveClientStopType type)Parameters
Section titled “Parameters”type(LiveClientStopType)
tryProxyConnection
Section titled “tryProxyConnection”public boolean tryProxyConnection(ProxyClientSettings proxySettings, ProxyData proxyData)Parameters
Section titled “Parameters”proxySettings(ProxyClientSettings)proxyData(ProxyData)
Returns
Section titled “Returns”boolean
Source
Section titled “Source”Client/src/main/java/io/github/jwdeveloper/tiktok/client/websocket/TikTokWebSocketClient.java:39