Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 2.43 KB

README.md

File metadata and controls

60 lines (39 loc) · 2.43 KB

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.