yesod-websockets

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

Latest on Hackage:0.3.0.2

See all snapshots yesod-websockets appears in

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

Module documentation for 0.2.4

This version can be pinned in stack with:yesod-websockets-0.2.4@sha256:124bc5e9288c678620116dc8ddc972d7ad082fcfd4c1b42303973e2fcf703e9c,1246

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.2.3

  • receiveDataMessageE and sendDataMessageE

0.2.2

  • Add exceptional websocket commands #772