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

Delay requesting game on join #2

Closed
zchr opened this issue Apr 13, 2020 · 1 comment
Closed

Delay requesting game on join #2

zchr opened this issue Apr 13, 2020 · 1 comment

Comments

@zchr
Copy link
Owner

zchr commented Apr 13, 2020

There is a delay when landing on the game page (or the emit is not firing at all). My theory is that the client requests the game state before the server has added it to a room. Switch to using callbacks if possible.

This only happens sometimes, and there is also a disconnect issue. My guess is it's this has something to do with it: https://devcenter.heroku.com/articles/node-websockets

@zchr
Copy link
Owner Author

zchr commented Apr 13, 2020

I think this was fixed by running heroku features:enable http-session-affinity (per the linked instructions). Will find out in due time.

@zchr zchr closed this as completed Apr 13, 2020
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

No branches or pull requests

1 participant