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
- backend/src/IpcHost.ts Line 75
Last Updated: 20 June, 2023