Skip to content

Pygbag post request #120

Answered by pmp-p
erasmushaggblom asked this question in Q&A
Sep 28, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

keeping in mind that I need to trigger the POST request once the game is finished

there's aio.fetch.RequestHandler for that

class RequestHandler:

That code was extracted from a scoreboard experiment written by @tank-king but has no test for it right now. Please report back any problem.

for posting on exit it is quite tricky : some platform may allow to close tabs without any warning or callback. You should background that task but as soon as possible / make a "saving" screen animation like most modern games have.

side note: maybe implement some proof of game while game is running and save incrementally game s…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@erasmushaggblom
Comment options

@tank-king
Comment options

Answer selected by erasmushaggblom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants