engine-io contains a Haskell implementation of Engine.IO, a real-time abstraction for the web, allowing one to interact with clients in a socket-like fashion (rather than the more traditional request-response pattern). Supports long-polling along with upgrading to WebSockets. This library is API agnostic - you need to connect it your web server by providing a ServerAPI object.
engine-io-snap provides a ServerAPI that can be used to run an Engine.IO application in Snap.
engine-io-yesod provides a ServerAPI that can be used to run an Engine.IO application in Yesod.
engine-io-wai provides a ServerAPI that can be used to run an Engine.IO application in WAI.
socket-io implements the Socket.IO protocol on top of engine-io. Socket.IO is a higher-level abstraction based on events. Clients send events to the server, which can respond by sending events back to clients, or broadcasting events to all other clients.
examples contains an example engine-io application (a latency test) and a chat server application written using socket-io.
请发表评论