API Reference > imodeljs-common > IpcSocket > IpcSocket > addListener addListener Method Establish a handler to receive messages for a channel through a socket. 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. Must begin with the iTwinChannel prefix. listener IpcListener A function called when messages are sent over channel Returns - RemoveFunction Defined in core/common/src/ipc/IpcSocket.ts Line 55 Last Updated: 29 November, 2022