Example Clojure WebSockets project using clj-wamp and HTTP Kit
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources-dev
resources-prod
resources/public
src/clj_wamp_example
.gitignore
README.md
project.clj

README.md

clj-wamp-example

An example Clojure WebSockets project using clj-wamp. Powers the cljwamp.us website.

Visit cljwamp.us for live demos and additional information.

For information on the WAMP specification, visit wamp.ws.

Examples

For the Chat Demo, take a look at the following files:

For the RPC Demo:

Usage

Clone project and run with application defaults:

% git clone https://github.com/cgmartin/clj-wamp-example.git
% cd clj-wamp-example
% lein run

Then point browser to localhost:8080

Application defaults are supplied by environment-based configuration found within ./resources-dev/config.clj.

Technologies used

This project was created from the clj-wamp leiningen template and heavily modified.

Server side:

  • clj-wamp - Clojure implementation of the WebSocket Application Messaging Protocol
  • HTTP Kit - Ring-compatible HTTP server for Clojure
  • Compojure - A concise routing DSL for Ring/Clojure
  • Clabango - Templating language for Clojure

Client side:

License

Copyright © 2013 Christopher Martin

Distributed under the Eclipse Public License, the same as Clojure.