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
- core/common/src/ipc/IpcSocket.ts Line 81
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.