mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Add session id to websocket connection to get authenticated WS as well as optional customizable type for disconnecting websocket client in various ways.
This commit is contained in:
@@ -199,6 +199,8 @@ public class TikTokLiveHttpClient implements LiveHttpClient
|
||||
.withParam("client", "ttlive-java")
|
||||
.withParam("room_id", room_id);
|
||||
|
||||
if (clientSettings.getSessionId() != null) // Allows receiving of all comments and Subscribe Events
|
||||
builder.withParam("session_id", clientSettings.getSessionId());
|
||||
if (clientSettings.getApiKey() != null)
|
||||
builder.withParam("apiKey", clientSettings.getApiKey());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user