Skip to content
This repository

A wrapper that has the servlet for cometd2.

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time


An ring adpater that includes the comet2d servlet.


Availabel on clojure jars. For use with lein.

 [net.matthoyt/ring-cometd2-adapter "0.1.0-SNAPSHOT"]

Publishing a message on a channel:

 (publish "channel/id" data)
 (publish "channel/id" data from-channel)

Defining services

 (defservices my-services
   ("service-name" "mychannel/*" handle))

Starting the server

 (run-jetty app
            {:port 8080 :servlets
              (create-bayeux-servlet my-services)]})

Adding a listener to see when a client session ends.

 (client-remove-listener client-session
                         (fn [session timeout]))


Jetty 7 apdater code:

Servlet Implementation:

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

Something went wrong with that request. Please try again.