IpcSocket Interface
An inter-process socket connection between a single IModelHost on the backend (the node process), and an IModelApp on the frontend (the browser process.) Each side will implement this interface to form a two way connection. The frontend and backend processes connected through an IpcSocket don't necessarily have to be on the same computer, but often are.
Properties
Name | Type | Description | |
---|---|---|---|
addListener | (channel: string, listener: IpcListener) => RemoveFunction | Establish a handler to receive messages for a channel through a socket. | |
removeListener | (channel: string, listener: IpcListener) => void | Remove a previously registered listener | |
send | (channel: string, ...data: any[]) => void | Send a message over the socket. |
Defined in
- core/common/src/ipc/IpcSocket.ts Line 41
Last Updated: 13 May, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.