joshzcold / Cold-Family-Feud

Host your own Family Feud game. Mobile friendly with built in buzzers.
https://famf.app
MIT License
72 stars 42 forks source link

Bug: websocket connections have trouble staying connected in production #33

Closed joshzcold closed 3 years ago

joshzcold commented 3 years ago

I played this game with my work and I had to keep refreshing the game windows to reconnect the websocket.

This happened on all screens within family fued on https://famf.app

This might be a problem with heroku and not the code. Perhaps if heroku has a limit on how long a connection can stay up on the free tier.

joshzcold commented 3 years ago

The normal Heroku HTTP routing timeout rules apply to WebSocket connections. Either client or server can prevent the connection from idling by sending an occasional ping packet over the connection.

looks like this only effects the admin and game window since the buzzer windows already send pings. This should be an easy fix.

joshzcold commented 3 years ago

Solved in https://github.com/joshzcold/Cold-Family-Feud/pull/34