invoke MethodStatic @beta

Send a message to the frontend via channel and expect a result asynchronously. The handler must be established on the frontend via IpcApp.handle

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

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

@note The returned Promise rejects if shutdown is called before the frontend responds.

Parameter Type Description
channel string The name of the channel for the method.
...args any[]  

Returns - Promise

Defined in

Last Updated: 03 August, 2026