You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
492 B
18 lines
492 B
/** |
|
* Fired when {@link ClientService.runSessionPrewarm} finishes so the live-activities banner can refresh |
|
* in step with the initial session batch (logged-in or anonymous). |
|
*/ |
|
|
|
let onPrewarmComplete: (() => void) | null = null |
|
|
|
export function registerLiveActivitiesPrewarmCallback(fn: (() => void) | null): void { |
|
onPrewarmComplete = fn |
|
} |
|
|
|
export function notifyLiveActivitiesPrewarmComplete(): void { |
|
try { |
|
onPrewarmComplete?.() |
|
} catch { |
|
// ignore listener errors |
|
} |
|
}
|
|
|