-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suddenly connects, even though the user is offline (sometimes) #157
Comments
Same problem here |
This functionality is implemented in the python version. |
i just added a conditional value like this if(Object.keys(stat.roomInfo).length > 2){
console.log('user live & send message');
} so when the library suddenly connect to room even the user is offline, the roomInfo is empty so we can do like tiktok.disconnect() first and then we try to connect to check the user live or not. |
So I created the TikTok Live Connector as a tool to check whether this username is live or not within a certain period of time. This is what the code looks like
Sometimes this code runs very well, but sometimes it also reads that the user is live even though the user is offline. maybe someone has an idea about this?
The text was updated successfully, but these errors were encountered: