Skip to content
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

Remove interval causing unexpected process waiting #171

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

ItWasEnder
Copy link
Contributor

@ItWasEnder ItWasEnder commented Feb 21, 2024

There does not seem to be a reason to clear the uu field in tiktokUtils.js every 30 minutes. This change attempts to solve this by adding the UID to the uu map on connect and removing it on disconnect

This is based on the observed implementation in the TikTokLive Python Library

#170

ItWasEnder and others added 4 commits February 20, 2024 19:18
There does not seem to be a reason to clear the uu field in tiktokUtils.js every 30 minutes, and the most you need to do is iterate it when a new webcast client is created. This is based on the observed implementation in the TikTokLive Python Library
@zerodytrash
Copy link
Owner

Thanks!

@zerodytrash zerodytrash merged commit af5d2ee into zerodytrash:main Feb 22, 2024
a100savage added a commit to a100savage/TikTok-Live-Connector that referenced this pull request Feb 29, 2024
* Remove interval causing unexpected process waiting

There does not seem to be a reason to clear the uu field in tiktokUtils.js every 30 minutes, and the most you need to do is iterate it when a new webcast client is created. This is based on the observed implementation in the TikTokLive Python Library

* Modify logic to add/remove id from uuc utility

* Moved placement of tiktokUtils calls & simplified add/remove uid logic

* add expiration to uu entries

---------

Co-authored-by: zerodytrash <59258980+zerodytrash@users.noreply.github.com>
Copy link

@gaffathegaffz gaffathegaffz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fgbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants