messenger-batch
Gracefully batching messenger requests.
Installation
npm install messenger-batch
This module is based on the approach described in Making Batch Requests.
Usage
const MessengerClient MessengerBatch = ;const MessengerBatchQueue = ; const client = MessengerClient; const queue = client; async { await queue; await queue; const profile = await queue; console;};
Retry for error: (#613) Calls to this api have exceeded the rate limit.
.
const MessengerBatchQueue isError613 = ; const queue = client shouldRetry: isError613 retryTimes: 2;
Options
delay
Default: 1000
.
retryTimes
Default: 0
.
shouldRetry
Default: () => true
.
License
MIT © Yoctol