e-bon
e-bon.ro
TypeScript SDK

client.controllers

Reference for the ControllersResource — list connected E-BON controllers (mobile app instances), mirroring /api/v1/controllers.

client.controllers

client.controllers wraps /api/v1/controllers/* — the registry of connected E-BON controllers (mobile app instances) that own physical devices via client.devices.claim. See the matching REST documentation at Controllers API.

Minimal surface — see the Controllers API reference for the full endpoints, including the presence and FCM-token routes that the SDK does not yet expose.

HTTP-level failures surface as EBonApiError — see Errors and the Errors API reference.

client.controllers.list()

List connected controllers.

async list(): Promise<ListControllersResult>

Takes no parameters.

Returns { instances: ConnectedController[] } — each entry is a live WebSocket-connected controller (controllerId, controllerName, appVersion, deviceModel, osVersion, connectedAt, connectedDevices).

const { instances } = await client.controllers.list();