Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is aimed at including some auto-pulls using
setIntervals
in two parts of the application. The first is in the player stats per map, which should allow us to poll data and view the scoreboard without having to refresh the page. After five seconds, users are allowed to force a refresh for the data, since we would like to have a bit of a wait time so spamming is not an option.The second point of this PR will be to try and attempt to refresh vetoes as well. However, there's not an easy way of determining if a match is complete, or has vetoes without making more API calls. So the next step is to determine if we can find a way to ensure a match is running, and has a veto process, and check to see if they are in that state. One way of doing this is to maybe create an API end point that pings the match and gets the status of the server, and the other is just using different API calls to determine if we have vetoes or not. Still need to think on this a bit more.
Closes #118 #119