- git clone the repo
npm install
- start the publisher app server using
npm start
- start subscriber app server using
node subscriber.js
- GET
/fireAndForget/:id
, id can be any name- The valid response will be
ok
- The valid response will be
- GET
/requestAndReply/:id
, id, can be any name- The valid response will be the
id
sent in the request
- The valid response will be the
By default the server connects to the open nats server implementation.
- you can provide any env variable to connect to you personal NATS server.
NATS_PORT
for nats port numberNATS_TOKEN
for nats security tokenNATS_URL
for nats url