Skip to content

Example Clojure WebSockets project using clj-wamp and HTTP Kit

Notifications You must be signed in to change notification settings

cgmartin/clj-wamp-example

Repository files navigation

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.

About

Example Clojure WebSockets project using clj-wamp and HTTP Kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published