socketio: Socket.IO server

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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

Versions 0.1.0.0, 0.1.0.0, 0.1.0.1, 0.1.1, 0.1.2, 0.1.3
Change log None available
Dependencies aeson (>=0.6.1 && <0.6.2), ansi-terminal (==0.6), base (>=4.6 && <4.7), bytestring (>=0.10.0 && <0.10.1), conduit (>=1.0.7 && <1.0.8), containers (>=0.5 && <0.6), http-types (>=0.8 && <0.9), lifted-base (>=0.2.1 && <0.2.2), monad-control (>=0.3.2 && <0.3.3), mtl (>=2.1 && <2.2), parsec (>=3.1 && <3.2), random (>=1.0 && <1.1), resourcet (>=0.4.7 && <0.4.8), text (>=0.11 && <0.12), transformers-base (>=0.4 && <0.5), unordered-containers (==0.2.3.0), wai (>=1.4.0 && <1.4.1), warp (>=1.3.9 && <1.3.10) [details]
License MIT
Author Ting-Yen Lai
Maintainer banacorn@gmail.com
Category Web
Uploaded by TingYenLai at 2013-12-03T17:36:44Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees