MagisterJS
MagisterJS copied to clipboard
Ratelimiting 'support'
Magister has added rate limiting a little while ago, and we currently just straight up ignore it. When ratelimited Magister sends an object like: {"Message":"Rate limit reached. Reset in 25 seconds.","SecondsLeft":25}.
I was thinking about when we get an object with a SecondsLeft field we delay every set request and repeat the current one (where we get the error from) after the value of SecondsLeft.
For this we need to wrap the HTTP object (as said in #29).
Yay for straight-up ignoring
That tactic hasn't been really working for us to be honest
I think this is done on the v2 branch, still have to test it, though