Commit 85e0e7a
#647: Admin page now keeps screen awake during all active game phases,
with visibilitychange handler and wake lock on page reload/reconnect.
#646: Fix cascade of issues causing mobile players to get locked out:
- Reconnect loop now stays on session-based reconnect while cookie exists
- Session cookie no longer cleared on transient SESSION_NOT_FOUND
- Wake lock activated from join_ack (not just PLAYING phase)
- Faster reconnect backoff (500ms for first 3 attempts, then linear)
- Server-side add_player() checks actual WS status to resolve race
condition where reload + async disconnect = NAME_TAKEN
Closes #646, closes #647
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9f42784 commit 85e0e7a
5 files changed
Lines changed: 45 additions & 6 deletions
File tree
- custom_components/beatify
- game
- www/js
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| |||
233 | 240 | | |
234 | 241 | | |
235 | 242 | | |
| 243 | + | |
236 | 244 | | |
237 | 245 | | |
238 | 246 | | |
| |||
2901 | 2909 | | |
2902 | 2910 | | |
2903 | 2911 | | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
2904 | 2919 | | |
2905 | 2920 | | |
2906 | 2921 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
342 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
343 | 350 | | |
344 | 351 | | |
345 | 352 | | |
| |||
545 | 552 | | |
546 | 553 | | |
547 | 554 | | |
| 555 | + | |
| 556 | + | |
548 | 557 | | |
549 | 558 | | |
550 | 559 | | |
| |||
593 | 602 | | |
594 | 603 | | |
595 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
596 | 610 | | |
597 | 611 | | |
598 | 612 | | |
| |||
935 | 949 | | |
936 | 950 | | |
937 | 951 | | |
938 | | - | |
939 | | - | |
| 952 | + | |
| 953 | + | |
940 | 954 | | |
941 | 955 | | |
942 | 956 | | |
| |||
0 commit comments