1.5 KiB
chat-demo for clj-browserchannel
A demo app for clj-browserchannel.
The chat-demo application is a very basic web chat application making use
of the client-side and server-side implementation for BrowserChannel provided
by clj-browserchannel. The server component is for BrowserChannel version 8.
The client component serves as a wrapper over goog.net.BrowserChannel
which also currently implements version 8 of the protocol.
The chat-demo web app runs in at least:
- Chrome
- Firefox
- Internet Explorer 5.5+ (!!)
- Android browser
- Others
Running
You can either start it up directly from a REPL by simply running:
(-main)
Or you can run it easily from a command line via the included Leiningen alias to build and run everything:
$ lein rundemo
Once the application server is running, you can then open up http://localhost:8080/ in your browser. Open it in multiple browser windows to see the chat communication in action.
At the bottom of the -main
function in chat-demo.server
, you can
comment/uncomment out the different run-
functions to choose which
web server you want to test out the demo with.
About
Written by: Gijs Stuurman / @thegeez / Blog / GitHub
Many updates in this fork by: Gered King / @geredking / GitHub
License
Copyright (c) 2012 Gijs Stuurman and released under an MIT license.