https://github.com/bburdette/chatexample
yesod-websockets chat example
https://github.com/bburdette/chatexample
Last synced: 2 months ago
JSON representation
yesod-websockets chat example
- Host: GitHub
- URL: https://github.com/bburdette/chatexample
- Owner: bburdette
- Created: 2015-05-18T00:04:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-18T00:14:33.000Z (about 10 years ago)
- Last Synced: 2025-01-21T19:51:16.651Z (4 months ago)
- Language: Haskell
- Size: 242 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yesod Websocket Chat Example
============================Just worked through adding the [chat example](https://github.com/yesodweb/yesod/blob/master/yesod-websockets/chat.hs) from yesod-websockets to a scaffolded yesod project. I'm going to alter that code in my actual project, so thought I'd save it here.
There's also a purescript version, which is a bit crude-but-works. Assuming you have all the purescript tools installed, then running 'grunt' from the purescript directory of this project should build a 'templates/chat.julius' file.
The commit history starts with an empty scaffolded project; you can step through the commits to see what changes were needed.
Assuming it all builds correctly, you can try these examples out with 'yesod devel' on the command line. Then navigate to
[http:://localhost:3000/chat/js/](http:://localhost:3000/chat/js/)
or
[http:://localhost:3000/chat/ps/](http:://localhost:3000/chat/ps/)