mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Fixed Live User Data Mapper throwing MalformedJsonException!
This commit is contained in:
@@ -86,9 +86,23 @@ public class LiveClientSettings {
|
||||
private HttpClientSettings httpSettings;
|
||||
|
||||
/**
|
||||
* Optional: Sometimes not every messages from chat are send to TikTokLiveJava to fix this issue you can set sessionId
|
||||
* documentation how to obtain sessionId https://github.com/isaackogan/TikTok-Live-Connector#send-chat-messages
|
||||
* Loop time in milliseconds between pings to TikTok
|
||||
* @apiNote Min: 250 (0.25 seconds), Max: 30000 (30 seconds), Default: 5000 (5 seconds)
|
||||
*/
|
||||
private long pingTaskTime = 5000;
|
||||
|
||||
public void setPingTaskTime(long pingTaskTime) {
|
||||
if (pingTaskTime < 250)
|
||||
throw new IllegalArgumentException("Minimum allowed value 250 millseconds");
|
||||
if (pingTaskTime > 30000)
|
||||
throw new IllegalArgumentException("Maximum allowed value 30000 milliseconds");
|
||||
this.pingTaskTime = pingTaskTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional: Sometimes not every messages from chat are send to TikTokLiveJava to fix this issue you can set sessionId
|
||||
* @see <a href="https://github.com/isaackogan/TikTok-Live-Connector#send-chat-messages">Documentation: How to obtain sessionId</a>
|
||||
*/
|
||||
private String sessionId;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user