@statesync/electron / ElectronSnapshotHandlerHandle
Interface: ElectronSnapshotHandlerHandle
Defined in: main.ts:192
Handle returned by createElectronSnapshotHandler for managing the lifecycle of a snapshot IPC handler.
Process context: main process only.
Properties
topic
ts
readonly topic: string;Defined in: main.ts:194
The sync topic this handler is bound to.
Methods
dispose()
ts
dispose(): void;Defined in: main.ts:202
Removes the ipcMain.handle() registration for this topic's snapshot channel.
Call this on app quit or during HMR reload to prevent stale handler errors. Safe to call multiple times — subsequent calls are no-ops.
Returns
void
