handle MethodStatic

Establish a handler for an Ipc channel to receive Frontend.invoke calls

handle(channel: string, handler: (...args: any[]) => Promise<any>): RemoveFunction

@note returns A function to call to remove the handler.

Parameter Type Description
channel string The name of the channel for this handler.
handler (...args: any[]) => Promise<any> A function that supplies the implementation for channel

Returns - RemoveFunction

Defined in

Last Updated: 17 December, 2024