Overlay reloads itself after a deploy (boot ID), versioned asset URLs
OBS kept running the old alert scripts after a deploy, so TTS redeems fell back to the cassette with no voice. The server now sends a boot ID on every WebSocket connect; an overlay built with a different ID reloads itself. Asset URLs carry ?v=<boot ID> so the reload never uses cached files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9e356b0875
commit
5f61b1ebe1
4 changed files with 30 additions and 16 deletions
|
|
@ -135,6 +135,13 @@ Chat (`?parts=chat`) is `public/chat/chat.css` + `public/chat/chat.js` (window.H
|
|||
- Moderation: deleted messages, timeouts, bans and /clear remove the matching slips at once.
|
||||
- Design preview with other styles: `~/Desktop/Stream/chat/index.html` (not in the repo).
|
||||
|
||||
## Overlay updates after a deploy
|
||||
|
||||
OBS keeps an overlay page running for hours, so after a deploy it would keep the old alert code. `src/ws.js` has a
|
||||
`BOOT_ID` (new on every server start); the overlay page is rendered with it, and the server sends
|
||||
`{type:'hello', boot}` on every WebSocket connect. When the overlay reconnects after a restart and the ID differs, it
|
||||
reloads itself (1.5 s later). Asset URLs in overlay.ejs carry `?v=<BOOT_ID>` so the reload never uses cached files.
|
||||
|
||||
## TTS voices (/tts)
|
||||
|
||||
Builder page to make named TTS voices, used by redeem variations (Redeems page: "TTS: <voice>" per variation).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue