bridge
bridge
The bridge worker connects this iii engine to another iii instance over
iii-sdk so functions on either side can call across the boundary. It opens a
single outbound WebSocket to the configured url, and stays open for the
worker's lifetime — bridging is request/response over that long-lived
connection. There are no trigger types.
The worker is configuration-driven. The primary surface is two list-shaped
config fields (forward and expose) that wire stable function ids on both
sides; once configured, callers reach across the bridge by invoking those
stable ids with the normal iii.trigger({ function_id, payload }) — no
bridge-specific call shape. Two functions (bridge.invoke,
bridge.invoke_async) are also registered as ad-hoc escape hatches for the
rare case where the remote function id is dynamic at runtime.