Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sample project for the RabbitMQ Websockets Plugin

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 include
Octocat-spinner-32 priv
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 rebar.config
Octocat-spinner-32 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.