- First to create subscription stream invoke
connect
method. - Next subscribe to
stream
field. FirstonNext
is always notification about sucessfull connection, skip it if not intersted.
- First to create publisher invoke
connect
method. - You can subscribe to
connectStream
field in order to know when connection estabilished. - You could write data without waiting connection to complete. Data will be send when connection estabilished.
Allow to connect, subscribe and publish rabbitmq messages in reactive style.
Contains typeScript defintion files.
Set up uri for RABBITMQ
- In
.npmrc
setRABBIT_URI=xxx
, higest priority - In
package.json
fieldconfig.RABBIT_URI
Run test
npm test
Project contians tasks
file for Visual Studio Code
- Build - run
tsc
, same asnpm run-task build
- Test - run
mocha
, same asnpm test
For some reason VS Code take quite a time to start build,
usually watch rebuild proccess via tsc -w
work much faster.
This way use tsc -w
in console and then run test task manually,
when neccessary.
Generate typedoc ./src/index.ts
To publish docs on github
git checkout --orphan gh-pages
git add --all .
git commit -am "first commit"
git push origin gh-pages