Skip to main content

@enclave-vm/client

Browser and Node.js client SDK for connecting to an EnclaveJS broker. Provides streaming execution, event handling, and automatic reconnection.

Installation

Quick Start

Client Configuration

Executing Code

Basic Execution

Execution Options

Event Handlers

All Event Types

Event Handler Shortcuts

Session Handle

The execute method returns a session handle for managing the execution:

Session Result

Error Handling

Error Codes

Connection State

Multiple Sessions

Browser Usage

Node.js Usage

TypeScript Types