IpcSocketFrontend Interface

Interface for the frontend (browser) side of a socket connection. Frontends may invoke methods implemented on the backend.

Extends

Properties

Name Type Description
invoke (channel: string, ...args: any[]) => Promise<any> Send a message to the backend via channel and expect a result asynchronously.  

Inherited properties

Name Type Inherited from Description
addListener Inherited (channel: string, listener: IpcListener) => RemoveFunction IpcSocket Establish a handler to receive messages for a channel through a socket.
removeListener Inherited (channel: string, listener: IpcListener) => void IpcSocket Remove a previously registered listener
send Inherited (channel: string, ...data: any[]) => void IpcSocket Send a message over the socket.

Defined in

Last Updated: 17 December, 2024