Skip to main content
Connects this III Engine instance to another III instance over WebSocket so you can expose local functions and forward calls to remote functions.

Sample Configuration

Configuration

string
WebSocket URL of the remote III instance. Defaults to III_URL if set, otherwise ws://0.0.0.0:49134.
string
Service identifier to register with the remote instance. When set, the worker registers the service on connect.
string
Human-readable service name. Defaults to service_id when omitted.
ExposeFunctionConfig[]
Functions from this instance to expose to the remote instance.
ForwardFunctionConfig[]
Local function aliases that forward invocations to remote functions.

Functions

function
Invoke a function on the remote III instance.
string
required
Remote function ID to invoke.
any
Payload to send to the remote function.
number
Override the invocation timeout in milliseconds. Defaults to 30000.
The remote function’s response value directly (not wrapped in an object).
function
Fire-and-forget invoke on the remote III instance.
string
required
Remote function ID to invoke.
any
Payload to send to the remote function.
number
Timeout is accepted but ignored for async invocations.