Replace polling loop with NATS pub/sub for game updates

Use via's embedded NATS server to notify players of state changes
instead of a 100ms polling ticker. Each player subscribes to
"game.<id>" on page load; via auto-cleans subscriptions on disconnect,
eliminating the need for manual player tracking and RegisterSync.
This commit is contained in:
Ryan Hamamura
2026-01-31 10:26:31 -10:00
parent d079b90a33
commit a6b5a46a8a
5 changed files with 86 additions and 96 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
c4
c4.db
data/