invoke

invoke: (channel: string, ...args: any[]) => Promise<any>

Send a message to the backend via channel and expect a result asynchronously.

@see Electron ipcRenderer.invoke documentation for details. Note that this interface may be implemented via Electron for desktop apps, or via WebSockets for mobile or web-based Ipc connections. In either case, the Electron documentation provides the specifications for how it works.

@note args are serialized with the Structured Clone Algorithm, so only primitive types and ArrayBuffers are allowed.

Defined in

Last Updated: 17 December, 2024