{% extends "clj_wamp_example/views/layout.html" %} {% block content %}
WAMP is an open WebSocket subprotocol that provides two asynchronous messaging patterns: RPC and PubSub.
See the WAMP website for more info.
clj-wamp provides an interface for WAMP websocket messaging on the server-side with HTTP Kit.
Compose a map of RPC and/or PubSub callbacks, and you're good to go.
It should work with any WAMP v1 enabled client. The examples on this site use AutobahnJS.
Add the following dependency to your existing project.clj
file:
[clj-wamp "1.0.0-rc1"]
...Or create a new clj-wamp starter project from scratch:
% lein new clj-wamp my-project-name
For a clj-wamp getting started guide, see the tutorial.
See the API docs for more information on the PubSub API and callback signatures.