mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
a41fe8806b
* chore: upgrade monorepo deps * chore: configure lint-staged * refactor: lenient use of any
13 lines
293 B
TypeScript
13 lines
293 B
TypeScript
import { socket } from './WebsocketAdapter.js';
|
|
|
|
/**
|
|
* 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,
|
|
});
|
|
}
|