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

heartbeat request on game page #39

Closed
ppeters0502 opened this issue Dec 10, 2021 · 3 comments · Fixed by #63
Closed

heartbeat request on game page #39

ppeters0502 opened this issue Dec 10, 2021 · 3 comments · Fixed by #63
Assignees

Comments

@ppeters0502
Copy link
Contributor

Since we're not using websockets/django-channels, the player's screen is only going to be updated when requests are sent out by the client and returned by the server. To keep the player connected to what's going on in the game then, we'll need a request that will be sent automatically every few seconds that can get the information that'll be needed to update in realtime(ish). Stuff like players score, who's still rolling dice, etc.
We'll want to keep this a fairly simple request that doesn't get bogged down with too much data, since it'll be firing off for each player in each game every couple of seconds.

@ppeters0502 ppeters0502 added this to the basic game page milestone Dec 10, 2021
@abullockuno
Copy link
Collaborator

abullockuno commented Dec 10, 2021

&LT meta http-equiv="refresh" content="30" &GT in the head tag of the page will refresh the page every thirty seconds

@abullockuno
Copy link
Collaborator

but do < and > for the actual html

@abullockuno
Copy link
Collaborator

location.reload() also refreshes the page manually, on a button click, say

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants