Skip to main content
API reference for the @enclave-vm/runtime package - the execution worker for distributed EnclaveJS deployments.

Installation

EnclaveRuntime Class

The runtime worker that connects to a broker and executes code.

Constructor

RuntimeOptions

WorkerPoolOptions

Methods

connect()

Connect to the broker.
Example:

disconnect()

Disconnect from the broker.

getStatus()

Get runtime status.

Events

RuntimeEvents

Example

Configuration Examples

Basic Runtime

With Worker Pool

With Labels for Routing

With Custom Enclave Options

Docker Deployment

Dockerfile

docker-compose.yml

Kubernetes Deployment

Complete Example

Health Check