yesod-websockets

WebSockets support for Yesod https://github.com/yesodweb/yesod

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Michael Snoyman
Maintained by michael@snoyman.com

REQUIRED PACKAGES

The example, chat.hs, requires stm-lifted and conduit-combinators which are not dependencies of yesod-websockets. Installing the extra packages needed for the chat.hs example can be installed with the command:

$ cabal install stm-lifted conduit-combinators

TIMEOUTS

Versions of yesod-websockets prior to 0.2.1 may experience session timeouts after about 30 seconds of inactivity. Refer to the patch in the websockets library which addresses this issue:

https://github.com/jaspervdj/websockets/commit/536849d1f3265076f61edefd5c89e84e82a99c71

Changes

0.3.0.2

  • sendClose and sendPing correctly find the Connection from WebSocketsT

    Previously, these types were incorrectly typed to look for the Connection on the m of WebSocketsT m (), and not via WebSocketsT itself. Because this made them practically impossible to use, this change is unlikely to break any existing code.

0.3.0.1

  • Minor cabal file improvements

0.3.0

  • Upgrade to yesod-core 1.6

0.2.6

  • Fix warnings

0.2.5

  • Allow to start websockets with custom ConnectionOptions with webSocketsOptions and webSocketsOptionsWith

0.2.4.1

  • Support for websockets 0.10

0.2.3

  • receiveDataMessageE and sendDataMessageE

0.2.2

  • Add exceptional websocket commands #772