This is an npac adapter with pdms api, using Hemera.js. This adapter also provides direct nats-level functions.
The adapter can be accessed via the pdms
name, and provides the following properties:
pdms: {
hemera: // The hemera instance
add: // The hemera.add() function
act: // THe hemera.act() function
publish: // The nats.publish() function
subscribe: // The nats.subscribe() function
request: // A NATS-level RPC-like request function
response: // A NATS-level RPC-like response function
}
See the unit tests as an example for the usage of these functions.
Run the install command:
npm install --save npac-pdms-hemera-adapter
This module uses the config.pdms
property to gain its configuration parameters.
The default parameters can be found in src/config.js
:
{
pdms: {
natsUri: process.env.PDMS_NATS_URI || "nats://demo.nats.io:4222"
}
}
To learn more about the tool visit the homepage.
- npac.
This project was generated from the ncli-archetype project archetype, using the kickoff utility.