Search code examples
clojurewebsocketcompojurering

Clojure: Webbit + Ring


Context

I just got http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html working.

I also have ring + compojure working.

Question:

I would like to use ring ... somehow ... with webbit is this possible?

Thanks!


Solution

  • Ring works with web servers via adapters. The most common case is that people want to use jetty, so Ring ships with a jetty adapter.

    In order to use ring with webbit, you'd want to write an adapter for it. Unfortunately, there doesn't seem to be any public webbit adapters already in existence, so you'll likely have to roll your own.