Sample node client for conglomerate
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
8ball.js
README.md
chat-publish.js
connect.js
jobs-consume.js
logs-consume.js
package.json

README.md

conglomerate-node-client

Sample Node.js client for conglomerate

Usage

Setup your environment with the location of the AMQP broker

export AMQP_URL=amqp://un:pw@host:port/vhost

You can now use the scripts below

Jobs

./jobs-consume.js

Continually reads one message at a time, converts markdown and acknowledges.

Logs

./logs-consume.js [<routing-key>]

Creates a temporary queue on the logs exchange, and begins streaming JSON to stdout. Try piping through the command-line tool from node-bunyan to format nicely.

You can pass an optional routing-key to limit which log messages are received.

Chat

./chat-publish.js <room> <name> <message ...>

Send a message to the chat exchange with the specified room and your name.

8ball

./8ball.js <question ...>

Sends your question, and a question of the computer's choice to the server. The responses will be correlated back to the original question via the correlation id.