mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
.
This commit is contained in:
@@ -39,7 +39,7 @@ public class TikTokManager {
|
||||
TikTokMessagessCollectorBuilder client;
|
||||
MessageCollector msgCollector;
|
||||
|
||||
public static String dbName= "ab";
|
||||
public static String dbName= "log";
|
||||
|
||||
public TikTokManager() {
|
||||
msgCollector = new MessageCollector(dbName);
|
||||
@@ -58,6 +58,11 @@ public class TikTokManager {
|
||||
{
|
||||
|
||||
});
|
||||
liveClientBuilder.onWebsocketUnhandledMessage((liveClient, event) ->
|
||||
{
|
||||
System.out.println("UNHANDLED MESSAGE! "+event.getMessage().getMethod());
|
||||
});
|
||||
|
||||
})
|
||||
.addUser(name);
|
||||
client.buildAndRun();
|
||||
|
||||
@@ -49,12 +49,12 @@ public class TikTokHandler {
|
||||
context.status(200);
|
||||
}
|
||||
|
||||
public void disconnect(Context context) throws SQLException {
|
||||
public void disconnect(Context context){
|
||||
tikTokManager.disconnect();
|
||||
context.status(200);
|
||||
}
|
||||
|
||||
public void events(Context context) throws SQLException {
|
||||
public void events(Context context) {
|
||||
var events = tikTokManager.getEventsNames();
|
||||
var gson = getGson();
|
||||
var result = gson.toJson(events);
|
||||
|
||||
3655
Tools-EventsWebViewer/src/main/resources/WebcastLog2.json
Normal file
3655
Tools-EventsWebViewer/src/main/resources/WebcastLog2.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user