Skip to content

@my-swu/simulator-client


@my-swu/simulator-client ​

Example:

ts
import { createSimulatorClient } from '@my-swu/simulator-client'

// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
  baseUrl: 'http://127.0.0.1:4000',
})

// Health is a low-cost way to verify the server is reachable.
const health = await simulatorClient.system.health()

console.log(health.status)

Classes ​

Interfaces ​

Type Aliases ​

Variables ​

Functions ​

Released under the MIT License.