The socketio package

[maintain]
Warnings:

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

Properties

Versions0.1.0.0, 0.1.0.0, 0.1.0.1, 0.1.1, 0.1.2, 0.1.3
Dependenciesaeson (==0.6.1.*), ansi-terminal (==0.6), base (==4.6.*), bytestring (==0.10.0.*), conduit (==1.0.7.*), containers (==0.5.*), http-types (==0.8.*), lifted-base (==0.2.1.*), monad-control (==0.3.2.*), mtl (==2.1.*), parsec (==3.1.*), random (==1.0.*), resourcet (==0.4.7.*), text (==0.11.*), transformers-base (==0.4.*), unordered-containers (==0.2.3.0), wai (==1.4.0.*), warp (==1.3.9.*)
LicenseMIT
AuthorTing-Yen Lai
Maintainerbanacorn@gmail.com
Stabilityexperimental
CategoryWeb
Upload dateTue Dec 3 17:36:44 UTC 2013
Uploaded byTingYenLai

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees