faybl-client

3.0.4 • Public • Published

Faybl Client JS

Faybl JavaScript Client

Getting Started

import { createClient } from 'faybl-client/browser';
// For nodejs version, remove '/browser' above

const client = createClient({ tenantUrl: 'atenant.faybl.online' });
await client.conf.asset.create({ id: 'test' });

createClient options

  • tenantUrl
  • confUrl
  • historyUrl
  • mqttUrl
  • noMqtt

The browser version also has:

  • pahoMqttOptions

Client structure

  • conf: All entities below have create, read, update, delete.
    • asset
    • assettype
    • channel
    • channeltype
    • config
    • configtype
    • procedure
    • proceduretype
    • rule
    • thing
    • thingtype
    • trigger
    • subscribe: No entity. Subscribes to changes in the data model.
    • unsubscribe: No entity. Unsubscribes above subscription.
  • channel
    • subscribe
    • unsubscribe
    • publish
    • read
  • mqttClient
  • close

License

Hippocratic 2.1

Readme

Keywords

none

Package Sidebar

Install

npm i faybl-client

Weekly Downloads

6

Version

3.0.4

License

TBD

Unpacked Size

365 kB

Total Files

34

Last publish

Collaborators

  • ez
  • dargolith