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

Use WebSocket over polling for updating game state #14

Open
aashutoshrathi opened this issue Aug 29, 2024 · 0 comments
Open

Use WebSocket over polling for updating game state #14

aashutoshrathi opened this issue Aug 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@aashutoshrathi
Copy link
Member

aashutoshrathi commented Aug 29, 2024

Description

The game state updates right now, as the front end polls every second for changes in the state of the game from the MRU. This can be done more efficiently by having a WebSocket endpoint on the express server like GET wss://..../:gameId subscribing which, will send all the game updates to the client, only when there are changes in State.

This would require a listener on SDK for C1 confirmations and also, have to update state on C2X.

@aashutoshrathi aashutoshrathi added the enhancement New feature or request label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant