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

Batch requests #103

Open
lostpebble opened this issue Mar 4, 2018 · 0 comments
Open

Batch requests #103

lostpebble opened this issue Mar 4, 2018 · 0 comments

Comments

@lostpebble
Copy link

lostpebble commented Mar 4, 2018

Hi there,

I'd like to use this module to send a bunch of events to analytics depending on what has been loaded on the page. This would usually be about 2 - 4 events depending, which I would like to batch to keep requests down.

I see you have added batching to the library, but throughout the docs I can't see any reference to batching and how it works. I have only seen that you can "daisy-chain" calls together, but it's not obvious if these are batched or not.

Would appreciate a little clarity on how batching works, thanks!

EDIT: After putting together some tests and using the debug option, I see that each one in the chain is "enqueued" and then they are all sent out together in a batch. So that answers my question.

Could still be more deliberately stated in the documentation, so I'll leave it open for now.

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

No branches or pull requests

1 participant