Question

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!

Was it helpful?

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.

OTHER TIPS

Ring defines only request-response cycle, there’s no push in Ring SPEC. You can write webbit ring adapter, but it will only allow you to react to the events happening in browser, without the ability to notify browser from server side. But, you can still do it directly via webbit api, not through ring middleware though.

You can read the same thing at the aleph page:

Aleph conforms to the interface described by Ring, with one small difference: the request and response are decoupled.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top