0.0.5 • Published 11 years ago

pontifex.ws v0.0.5

Weekly downloads
1
License
-
Repository
-
Last release
11 years ago

pontifex.ws

A WebSocket to AMQP Bridge

Getting Started

To run the websocket bridge:

./bin/pontifex 'ws://localhost:8888/' 'amqp://guest:guest@localhost:5672/'

You can then issue commands:

$ wscat --connect ws://localhost:8888/
connected (press CTRL+C to quit)
> [ "post", "/redis-out/#/ws" ]
< ["ok","/redis-out/#/ws"]
> [ "get", "/ws" ]
< ["ok","/ws"]
< ["ok","Hi Dave!"]
> [ "put", "/redis-in/test", "set", "hello", "hello from websockets" ]
< ["ok","/redis-in/test"]
< ["ok","OK"]
> [ "put", "/redis-in/test", "get", "hello" ]
< ["ok","/redis-in/test"]
< ["ok","hello from websockets"]

The commands take the format of

post /exchange/key/queue	-> bind a queue to an exchange with routing key
put /exchange/key message...	-> send the message to an exchange with routing key
get /queue			-> subscribe to a queue
delete /queue			-> destroy the queue and any pending messages
0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.1

11 years ago