killer-queen-stats / kqstats

Get real time statistics from your Killer Queen cabinets!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle disconnects from the cab

KevinSnyderCodes opened this issue · comments

Noticed at Brewcade that when the computer got disconnected from the cab network, the stats would freeze up permanently until the program was restarted.

This should be handled better.

KQStream

  • The cab sends out an "alive" message every 5 seconds. We can continue to expect this message within, say, 10 seconds of the last one. If we don't receive it, the cab has disconnected and we should try reconnecting periodically.
  • There may also be a "disconnect" event that we're not handling. Should also try to reconnect at that point as well.
  • There should be an option to disable the reconnect functionality (enabled by default).