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

add global http queue #197

Open
seiyria opened this issue Sep 15, 2023 · 0 comments
Open

add global http queue #197

seiyria opened this issue Sep 15, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@seiyria
Copy link
Member

seiyria commented Sep 15, 2023

to avoid the client getting too throttled for some actions (rapid market clicking, hovering lots of notifications), the entire client should queue http requests and send them out every 100ms, rather than immediately upon calling the function.

this will require the following services to use this wrapper:

  • gamplay.service
  • fight.service
  • leaderboard.service
  • market.service
  • notifications.service
  • player.service
  • user.service

Somehow, they'll need to return their observable to be subscribed to, while putting them in a queue. One potential library to use is https://www.npmjs.com/package/rx-queue#delayqueue.

@seiyria seiyria added enhancement New feature or request help wanted Extra attention is needed labels Sep 15, 2023
@seiyria seiyria added this to the Release 4 milestone Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant