This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
clj-browserchannel/chat-demo
2016-05-16 19:16:17 -04:00
..
resources add trace log output to clj-browserchannel 2016-05-13 12:39:13 -04:00
src/chat_demo add '!' suffix to a bunch of functions that were not side-effect free 2016-05-16 13:46:15 -04:00
Procfile fix chat-demo 2016-05-07 16:20:54 -04:00
project.clj update dependencies 2016-05-16 18:56:33 -04:00
README.md even _more_ README updates 2016-05-16 19:16:17 -04:00

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.