nmichel / jpetdemo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#jpetdemo : a basic ejpet demo

#What

jpetdemo is a messenging server based on websockets and JSON messenging.

The server is very simple and illustrates how JSON nodes can be routed using ejpet pattern matching mechanism.

#Quickstart Clone

$ git clone git@github.com:nmichel/jpetdemo.git
$ cd jpetdemo

Build

$ ./rebar get-deps
$ ./rebar compile

Start

$ ./run.sh

#Use

Point your browser at http://localhost:90001.

Open several times the URL to simulate several connected users.

The web UI allows to

  • send messages to "rooms"
  • subscribe to "rooms"
  • subscribe to "topics"

To indicate topics in text messages, use hastag markers # (e.g. #topic)

Footnotes

  1. possibly, replace localhost with a specific IP; e.g. if (like me) you are hosting the demo server in a VM.

About


Languages

Language:JavaScript 86.9%Language:HTML 6.8%Language:Erlang 5.6%Language:CSS 0.7%Language:Shell 0.0%