Stabilizza regia, live web e sync punteggi app nativa.
Corregge scadenza token regia oltre le 8h, tabellone HTML sulla pagina live, pulsanti pausa/ripresa in regia, link admin e broadcast ActionCable diretto. App Android: overlay branding, sync score da regia via WebSocket con reconnect e poll. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -131,6 +131,12 @@ class StreamSession < ApplicationRecord
|
||||
status.in?(%w[ended error])
|
||||
end
|
||||
|
||||
def regia_token_active?
|
||||
regia_token_digest.present? &&
|
||||
regia_token_expires_at&.future? &&
|
||||
!terminal?
|
||||
end
|
||||
|
||||
def resumable?
|
||||
status.in?(%w[connecting live reconnecting paused])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user