mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 17:33:55 +00:00
18 lines
369 B
TypeScript
18 lines
369 B
TypeScript
import { socket } from './WebsocketAdapter.js';
|
|
|
|
export enum RefetchTargets {
|
|
Rundown = 'rundown',
|
|
Report = 'report',
|
|
}
|
|
|
|
/**
|
|
* Utility function to notify clients that the REST data is stale
|
|
* @param payload -- possible patch payload
|
|
*/
|
|
export function sendRefetch(payload: unknown = null) {
|
|
socket.sendAsJson({
|
|
type: 'ontime-refetch',
|
|
payload,
|
|
});
|
|
}
|