Haskell Websockets experiment
Haskell JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cli/main
core
web
ws/main
.gitignore
LICENSE
Main.hs
README.md
Setup.hs
hwsexp.cabal

README.md

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.