Skip to content
Sample project for the RabbitMQ Websockets Plugin
Erlang JavaScript Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
include
priv/www
src
.gitignore
LICENSE.md
Makefile
README.md
rebar.config
start-dev.sh

README.md

rmq_ws_test

Sample project that shows a simple HTML page that gets messages via Websockets from RabbitMQ.

If you have the RabbitMQ Websockets Plugin enabled, then you just need to server the files that are inside the priv/www of this project. You can do so with any web server, it doesn't have to be in Erlang.

This project uses Misultin to server such folder.

Build

$ git clone git://github.com/videlalvaro/rmq_ws_test.git
$ cd rmq_ws_test
$ make

Usage

$ ./start-dev.sh

Then point your browser to http://localhost:8081.

Send messages to the fanout exchange using the helpers from the RabbitMQ Websockets Plugin:

rabbit_websockets_util:publish_msg(<<"amq.fanout">>, <<"Hello Websockets!">>, <<"">>).

License

See LICENSE.md

Something went wrong with that request. Please try again.