new IPCService()
Interface for creating an IPC service endpoint for other appliations to access.
Instances of this class are returned by ipc.createService, and are not instantiatable otherwise.
- Source:
- See:
Methods
addReceiver(receiver)
Register receiver function with service interface.
This method takes the function name and uses it to generate the IPCInterfaceSpec returned to remote clients.
Parameters:
Name | Type | Description |
---|---|---|
receiver |
function |
Interface function implementation |
- Source:
getLocalInterface() → {ServiceInterface}
Get IPC service local interface, allows invoking service methods locally in original context.
- Source:
ready()
Perform service API setup completion and signal remote clients that API is setup and ready to receive requests.
- Source: