Skip to content

@statesync/electron


@statesync/electron / ElectronSnapshotProviderOptions

Interface: ElectronSnapshotProviderOptions

Defined in: transport.ts:80

Configuration options for createElectronSnapshotProvider.

Properties

channel

ts
channel: string;

Defined in: transport.ts:94

The IPC channel name for snapshot requests.

Must match the channel registered by createElectronSnapshotHandler in the main process. Typically produced by snapshotChannel (e.g. "statesync:todos:snapshot").


invoke

ts
invoke: ElectronInvoke;

Defined in: transport.ts:85

The invoke function from the bridge (bridge.invoke) or any ElectronInvoke-compatible function.

Released under the MIT License.