1
0
Fork 0

Many new api calls

This commit is contained in:
Julien Dessaux 2023-05-29 23:25:09 +02:00
parent e52378e03f
commit d79a4485a6
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 75 additions and 8 deletions

View file

@ -9,7 +9,7 @@ let queue = new PriorityQueue(); // a priority queue to hold api calls we want t
// send takes a request object as argument and an optional context ctx
// example request: {
// endpoint: the url endpoint to call,
// endpoint: the path part of the url to call,
// method: HTTP method for `fetch` call, defaults to 'GET',
// payload: optional json object that will be send along with the request,
// priority: optional priority value (defaults to 10, lower than 10 means the message will be sent faster)