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

Allow staggered requests #15

Closed
ahmadbky opened this issue Apr 29, 2024 · 0 comments
Closed

Allow staggered requests #15

ahmadbky opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ahmadbky
Copy link
Member

Sometimes, the ManiaPlanet client fails to send an HTTP request. This leads to a lot of runs that are not saved by players. The game-mode should cache failed requests somewhere, and try to send them next time in a different route, that allows to specify at which time it tried to send the request.

Concretely, for now, the API should provide 2 new routes:

  • /staggered/player/finished
  • /staggered/event/:handle/:edition/player/finished

Both would accept this JSON body:

{
  "req_tstp": 99999,
  "body": { /* same body as their non-staggered version */ }
}
@ahmadbky ahmadbky self-assigned this Apr 29, 2024
@ahmadbky ahmadbky added the enhancement New feature or request label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant