Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Haskell Websockets experiment
Haskell JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cli/main
core
web
ws/main
.gitignore
LICENSE
Main.hs
README.md
Setup.hs Initial commit
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.

Something went wrong with that request. Please try again.