Skip to content

Repository files navigation

Factory+ Rx service client

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.

Usage

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()));

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages