This module provides extensions to the ServiceClient class provided by
@amrc-factoryplus/service-client. These extensions support prompt
notification of changes to service state by using rxjs Observables.
Import the RxClient class and create a client object. All parameters to the RxClient constructor are as for the base ServiceClient.
importprocessfrom"process";import{RxClient,UUIDs}from"@amrc-factoryplus/rx-client";
# Useconfigurationfromtheenvironmentconstclient=newRxClient({env: process.env});
# Useexplicitconfigurationconstclient=newRxClient({directory_url: "https://directory.my-fplus.example",username: "...",password: "...",verbose: "ALL",});
# CreateandsubscribetoanObservableconstsub=client.ConfigDB.search_app(UUIDs.App.Info).subscribe(val=>console.log(val.toJS()));