Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (31 sloc) 1.32 KB

Build Status

monterl_carlo_websocket

monterl_carlo websocket server

###Getting started

clone git://github.com/nisbus/monterl_carlo_websocket.git
./rebar get-deps
./rebar clean compile generate
./rel/monterl_carlo_websocket/bin/monterl_carlo_websocket console

You now have websocket server running on localhost:8080

You can now navigate in your browser to http://localhost:8080/index.html and start playing with charting

If you want to play with the websocket connection through a browser a nice way of testing it
is using the Simple Websocket Client chrome extension
Just type in localhost:8080 and press connect.
Then copy paste the api samples (one at a time) from below into the request box and hit send.

###API

{"type":"start", "symbol":"Y"}
{"type":"subscribe", "symbol":"Y"}
{"type":"stop", "symbol":"Y"}
{"type":"graph", "symbol":"Y","graph_type":"statistics","points":5}

Check out monterl_carlo for more parameters to the start and graph methods.