diff --git a/yesod-websockets/README.md b/yesod-websockets/README.md new file mode 100644 index 00000000..c6bb3869 --- /dev/null +++ b/yesod-websockets/README.md @@ -0,0 +1,79 @@ + +##README## + +**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". + +**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| +