Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:nisbus/monterl_carlo_websocket

  • Loading branch information...
commit 9184e5b3ef1b3d4624a4f153ed1028450f9baafc 2 parents 4b46649 + 215ddba
@nisbus authored
Showing with 32 additions and 1 deletion.
  1. +32 −1 README.md
View
33 README.md
@@ -1,4 +1,35 @@
monterl_carlo_websocket
=======================
-monterl_carlo websocket server
+monterl_carlo websocket server
+
+###Getting started
+
+```bash
+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
+A nice way of testing it is using the [Simple Websocket Client chrome extension](https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo)
+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
+
+```json
+{"type":"start", "symbol":"Y"}
+```
+```json
+{"type":"subscribe", "symbol":"Y"}
+```
+```json
+{"type":"stop", "symbol":"Y"}
+```
+```json
+{"type":"graph", "symbol":"Y","graph_type":"statistics","points":5}
+```
+
+Check out [monterl_carlo](https://github.com/nisbus/monterl_carlo) for more parameters to the start and graph methods.
Please sign in to comment.
Something went wrong with that request. Please try again.