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

Impossible to pass custom settings to the XHR pool #342

Closed
p-himik opened this issue May 5, 2019 · 1 comment
Closed

Impossible to pass custom settings to the XHR pool #342

p-himik opened this issue May 5, 2019 · 1 comment

Comments

@p-himik
Copy link
Contributor

p-himik commented May 5, 2019

The client side of my app tries to get all kinds of data upon the first connection - it works perfectly with WS and fails some requests with long polling because :xhr-pool-depleted (default pool size is 10).

I'm not sure if being able to increase the pool size is the correct solution here. Maybe a better way to handle it would be to somehow make Sente wait till there's a free connection.
What do you think?

@ptaoussanis
Copy link
Member

@p-himik Hi Eugene, apologies for the long delay replying.
This will be addressed in the forthcoming Sente v1.18:

  • Support will be added for a custom XHR pool.
  • Support will be added to wait for an available XHR from pool.

Thanks for pinging about this, and again apologies for the delay.

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

No branches or pull requests

2 participants