socketio: Socket.IO server

[ library, mit, web ] [ Propose Tags ]

Socket.IO for Haskell folks.

Socket.IO
http://socket.io/
Protocol
https://github.com/LearnBoost/socket.io-spec
{-# LANGUAGE OverloadedStrings #-}

import Web.SocketIO

-- listens to port 4000
main = server 4000 $ do

    -- ping pong
    on "ping" $ emit "pong" []

    -- reply :: CallbackM [Text]
    on "echo" $ reply >>= emit "pong"

    -- do some IO
    on "Kim Jong-Un" $ liftIO launchMissile
Versions [faq] 0.1.0.0, 0.1.0.1, 0.1.1, 0.1.2, 0.1.3
Dependencies aeson (==0.7.*), ansi-terminal (==0.6.*), base (==4.6.*), bytestring (==0.10.*), http-types (==0.8.*), lifted-base (==0.2.*), monad-control (==0.3.*), mtl (==2.1.*), parsec (==3.1.*), random (==1.0.*), text (==1.1.*), transformers-base (==0.4.*), unordered-containers (==0.2.*), wai (==2.0.*), warp (==2.0.*) [details]
License MIT
Author Ting-Yen Lai
Maintainer banacorn@gmail.com
Category Web
Source repo head: git clone https://github.com/banacorn/socket.io-haskell
Uploaded by TingYenLai at Sat Mar 1 18:56:21 UTC 2014
Distributions NixOS:0.1.3
Downloads 2101 total (45 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees