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

Chore/030 setup game server socketio #48

Merged
merged 14 commits into from
Jul 31, 2024

Conversation

trsctr
Copy link
Collaborator

@trsctr trsctr commented Jul 31, 2024

Issue: #30

Server runs as a plain python app, no django leftovers are present.
Socket.io connection is estabilished, path in the server is default /socket.io, but in order to differentiate this from other possible socket.io connections, the proxy config routes the the path as /game-server/socket.io, which will be then redirected to the game-server service in path /socket.io

Currently a new remote game is launched when "local game" is clicked on front page. Currently have not tested if this connection works when logged in, also it seems that a game session is not deleted from server when players leave, need to be fixed.

Frontend also contains fixes to styles to work with SCSS.

trsctr added 13 commits July 21, 2024 17:25
… update statuses. next: add socket code to frontend service
… is updated on regular intervals and paddle movement does not speed up the game
…into chore/030-setup-game-server-socketio
… random player and game id's, next plan is to handle those and protect frontend from receiving wrong data and also server to validate the data
…me is launched, these numbers are used to create game session in server. was able to successfully run multiple game sessions simultaneously
…y from other machines in same network, fixed scss issue
…th game-server/socket.io instead of default path to make sure it overlap with other possible socket connections, updated readme
@Nicktvdd Nicktvdd self-requested a review July 31, 2024 07:51
@trsctr
Copy link
Collaborator Author

trsctr commented Jul 31, 2024

Solved conflicts, merging.

@trsctr trsctr merged commit e8206a8 into develop Jul 31, 2024
4 of 6 checks passed
@Nicktvdd
Copy link
Collaborator

Beep boop assimilation commencing

@trsctr trsctr deleted the chore/030-setup-game-server-socketio branch July 31, 2024 15:01
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.

2 participants