`TikTokEventListener` new method of listening events
   see it at TestApplication/ListenerExample.java

Bugs:
 - Fixed bug: Websocket was sending ping after it was closed
This commit is contained in:
JW
2023-09-07 03:19:25 +02:00
parent 911e2b12a5
commit 4a157143ec
99 changed files with 2558 additions and 762 deletions

View File

@@ -1,11 +1,15 @@
package io.github.jwdeveloper.tiktok;
import java.io.IOException;
public class SimpleExample {
public static void main(String[] args) throws IOException {
// set tiktok username
TikTokLive.newClient(Main.TEST_TIKTOK_USER)
.configure(clientSettings ->
{
})
.onFollow((liveClient, event) ->
{
System.out.println("Follow joined -> " + event.getNewFollower().getNickName());
@@ -14,7 +18,6 @@ public class SimpleExample {
{
System.out.println("Connected");
})
.onJoin((client, event) ->
{
System.out.println("User joined -> " + event.getUser().getNickName());