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

Feature/live score update #20

Merged
merged 4 commits into from
Dec 26, 2023
Merged

Feature/live score update #20

merged 4 commits into from
Dec 26, 2023

Conversation

gabeklavans
Copy link
Owner

@gabeklavans gabeklavans commented Dec 26, 2023

I remember what I meant... it was from when I only planned to allow 2
players in a game at once. Other players could specate the two players
live
src/server/routes.ts Fixed Show fixed Hide fixed
gameSession.turnCount++;

handleNewScore(gameSession, userId, score).catch(console.error);
player.score = score;

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
user controlled input
.
gameSession.players[userId].score = score;
if (!body.partial) {
handleNewScore(gameSession, userId, score).catch(console.error);
player.done = true;

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
user controlled input
.
switch (gameSession.game) {
case Game.WORD_HUNT:
gameSession.players[userId].words = body.words;
player.words = body.words;

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
user controlled input
.
@gabeklavans
Copy link
Owner Author

Those warnings are so true. But CBA to replace everything with maps right now.

@gabeklavans gabeklavans merged commit 354f087 into main Dec 26, 2023
2 checks passed
@gabeklavans gabeklavans deleted the feature/live-score-update branch December 26, 2023 05:58
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 this pull request may close these issues.

Update backend with each new found word in real time, for sudden disconnects
1 participant