Skip to main content

Interface: EventsDomainBridge

Defined in: shared/types/eventsBridge.ts:35

Contract for the preload events bridge exposed to the renderer.

Propertiesโ€‹

onCacheInvalidated()โ€‹

readonly onCacheInvalidated: (callback: (data: CacheInvalidatedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:44

Subscribe to events emitted on the cache:invalidated channel.

Parametersโ€‹

callbackโ€‹

(data: CacheInvalidatedEventData) => void

Invoked with payloads emitted on the cache:invalidated channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onHistoryLimitUpdated()โ€‹

readonly onHistoryLimitUpdated: (callback: (data: HistoryLimitUpdatedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:57

Subscribe to events emitted on the settings:history-limit-updated channel.

Parametersโ€‹

callbackโ€‹

(data: HistoryLimitUpdatedEventData) => void

Invoked with payloads emitted on the settings:history-limit-updated channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorCheckCompleted()โ€‹

readonly onMonitorCheckCompleted: (callback: (data: MonitorCheckCompletedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:69

Subscribe to events emitted on the monitor:check-completed channel.

Parametersโ€‹

callbackโ€‹

(data: MonitorCheckCompletedEventData) => void

Invoked with payloads emitted on the monitor:check-completed channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorDown()โ€‹

readonly onMonitorDown: (callback: (data: MonitorDownEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:81

Subscribe to events emitted on the monitor:down channel.

Parametersโ€‹

callbackโ€‹

(data: MonitorDownEventData) => void

Invoked with payloads emitted on the monitor:down channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitoringStarted()โ€‹

readonly onMonitoringStarted: (callback: (data: MonitoringStartedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:93

Subscribe to events emitted on the monitoring:started channel.

Parametersโ€‹

callbackโ€‹

(data: MonitoringStartedEventData) => void

Invoked with payloads emitted on the monitoring:started channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitoringStopped()โ€‹

readonly onMonitoringStopped: (callback: (data: MonitoringStoppedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:105

Subscribe to events emitted on the monitoring:stopped channel.

Parametersโ€‹

callbackโ€‹

(data: MonitoringStoppedEventData) => void

Invoked with payloads emitted on the monitoring:stopped channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorStatusChanged()โ€‹

readonly onMonitorStatusChanged: (callback: (data: StatusUpdate) => void) => () => void

Defined in: shared/types/eventsBridge.ts:117

Subscribe to events emitted on the monitor:status-changed channel.

Parametersโ€‹

callbackโ€‹

(data: StatusUpdate) => void

Invoked with payloads emitted on the monitor:status-changed channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorUp()โ€‹

readonly onMonitorUp: (callback: (data: MonitorUpEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:129

Subscribe to events emitted on the monitor:up channel.

Parametersโ€‹

callbackโ€‹

(data: MonitorUpEventData) => void

Invoked with payloads emitted on the monitor:up channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onSiteAdded()โ€‹

readonly onSiteAdded: (callback: (data: { site: Site; source: "import" | "migration" | "user"; timestamp: number; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:141

Subscribe to events emitted on the site:added channel.

Parametersโ€‹

callbackโ€‹

(data: { site: Site; source: "import" | "migration" | "user"; timestamp: number; }) => void

Invoked with payloads emitted on the site:added channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onSiteRemoved()โ€‹

readonly onSiteRemoved: (callback: (data: { cascade: boolean; siteIdentifier: string; siteName: string; timestamp: number; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:153

Subscribe to events emitted on the site:removed channel.

Parametersโ€‹

callbackโ€‹

(data: { cascade: boolean; siteIdentifier: string; siteName: string; timestamp: number; }) => void

Invoked with payloads emitted on the site:removed channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onSiteUpdated()โ€‹

readonly onSiteUpdated: (callback: (data: { previousSite: Site; site: Site; timestamp: number; updatedFields: string[]; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:165

Subscribe to events emitted on the site:updated channel.

Parametersโ€‹

callbackโ€‹

(data: { previousSite: Site; site: Site; timestamp: number; updatedFields: string[]; }) => void

Invoked with payloads emitted on the site:updated channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onStateSyncEvent()โ€‹

readonly onStateSyncEvent: (callback: (data: StateSyncEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:177

Subscribe to events emitted on the state-sync-event channel.

Parametersโ€‹

callbackโ€‹

(data: StateSyncEventData) => void

Invoked with payloads emitted on the state-sync-event channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onTestEvent()โ€‹

readonly onTestEvent: (callback: (data: TestEventPayload) => void) => () => void

Defined in: shared/types/eventsBridge.ts:189

Subscribe to events emitted on the test-event channel.

Parametersโ€‹

callbackโ€‹

(data: TestEventPayload) => void

Invoked with payloads emitted on the test-event channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onUpdateStatus()โ€‹

readonly onUpdateStatus: (callback: (data: UpdateStatusEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:201

Subscribe to events emitted on the update-status channel.

Parametersโ€‹

callbackโ€‹

(data: UpdateStatusEventData) => void

Invoked with payloads emitted on the update-status channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


removeAllListeners()โ€‹

readonly removeAllListeners: () => void

Defined in: shared/types/eventsBridge.ts:208

Remove all registered renderer event listeners.

Returnsโ€‹

void