faybl-client
v4.0.0-rc.8
Published
Faybl JavaScript Client
Downloads
112
Readme
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
tenantUrlconfUrldataHistoryUrlmqttUrlnoMqtt
The browser version also has:
pahoMqttOptions
Client structure
conf: All entities below havecreate,read,update,delete.assetassettypechannelchanneltypeconfigconfigtypeprocedureproceduretyperulethingthingtypetriggersubscribe: No entity. Subscribes to changes in the data model.unsubscribe: No entity. Unsubscribes above subscription.
channelsubscribeunsubscribepublishread
mqttClientclose
License
Hippocratic 2.1
