addListener MethodStatic

Establish a handler to receive messages sent via IpcApp.send.

addListener(channel: string, listener: IpcListener): RemoveFunction

note returns A function to call to remove the listener.

Parameter Type Description
channel string The name of the channel for the messages.
listener IpcListener A function called when messages are sent over channel

Returns - RemoveFunction

Defined in

Last Updated: 12 June, 2024