tamilselvanarjun / hwsexp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple Haskell server WebSocket server with AngularJS application with D3 chart. Head over to http://www.cakesolutions.net/teamblogs/2014/01/06/haskell-websockets-and-d3-js/ for details.

In short, clone this repository, and then run using cabal run (or if you have cabal < 1.18: cabal configure --enable-tests && cabal build && ./dist/build/ws/ws). This starts the WebSocket server that listens on all local interfaces on port 9160. The AngularJS application in web/numbers.html then allows you to submit the expressions to have them executed. To get started, execute evendistr 25 [0..100] forever every 1000ms, which generates even distribution of 100 numbers in the range 0..100, forever, with delay of 1s between every new set.

About

License:Apache License 2.0


Languages

Language:Haskell 83.0%Language:JavaScript 12.8%Language:HTML 3.8%Language:CSS 0.4%