echojs
echojs copied to clipboard
x-ratelimit-remaining
Great & simple library. Thanks for making it.
I am attempting to deal with concurrency, in realtime, using the x-ratelimit-* headers that are sent back with all requests.
I am unsure of where to start, but would love to use your module as a start to that, so I don't have to just hope for proper concurrency of ~120 calls per minute (which, in my experience, has been pretty unreliable.) It'd be neat if I could use the headers directly to throttle the client. Any suggestions? here is an example set of headers from track/profile that pertain to ratelimit:
{
"x-ratelimit-remaining": "19",
"x-ratelimit-limit": "20",
"x-ratelimit-used": "1",
}
maybe this should be a question for rem?