diff --git a/yesod-websockets/README.md b/yesod-websockets/README.md index c6bb3869..a229dc3f 100644 --- a/yesod-websockets/README.md +++ b/yesod-websockets/README.md @@ -1,79 +1,18 @@ -##README## +## REQUIRED PACKAGES -**REQUIRED PACKAGES:** -chat.hs requires two packages which are not part of yesod-websockets: stm-lifted and conduit-combinators. yesod-websockets can be installed with the command "cabal install". The additional packages can be installed with the command, "cabal install stm-lifted conduit-combinators". +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: -**TIMEOUTS:** chat.hs sessions timeout after about 30 seconds of inactivity. One way to control timeouts is to add a few lines of code to chat.hs as follows: -```haskell -getHomeR :: Handler Html -getHomeR = do - webSockets chatApp - defaultLayout $ do - [whamlet| -