API Reference
@iii-dev/sdk
Build with iii SDK
Bridge
This is the main class for the iii SDK. It is used to register services, functions, and triggers.
import { Bridge } from '@iii-dev/sdk';
const bridge = new Bridge(process.env.III_BRIDGE_URL ?? 'ws://localhost:49134')The port to iii is usually ws://localhost:49134 if you're running the iii process locally.
Methods
Registers a new trigger. A trigger is a way to invoke a function when a certain event occurs.
Registers a new service. A service is a collection of functions that are related to each other.
Registers a new function. A function is a unit of work that can be invoked by other services.
Invokes a function.
Invokes a function asynchronously.
Registers a new trigger type. A trigger type is a way to invoke a function when a certain event occurs.