GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mrh0057/ring-comet2-adapter: A wrapper that has the servlet for cometd2.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
functional-tests
functional-tests
 
 
src/ring/adapter
src/ring/adapter
 
 
test/ring/adapter
test/ring/adapter
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
project.clj
project.clj
 
 

Repository files navigation

ring-cometd2-adapter

An ring adpater that includes the comet2d servlet.

Usage

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-cometd-servlet)
              (create-bayeux-servlet my-services)]})

Adding a listener to see when a client session ends.

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

License

Jetty 7 apdater code: https://github.com/jalpedersen/ring-jetty7-adapter

Servlet Implementation: https://github.com/maxweber/hello-cometd

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

About

A wrapper that has the servlet for cometd2.

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.