Unless someone has to suggest something better, it seems that the best way to achieve what i want is to use aleph <https://github.com/ztellman/aleph/> which allows you to initialize it with a wrapped ring handler.
If you have more details on the issue or alternatives I would love to hear about them. On Tuesday, February 12, 2013 12:54:53 AM UTC+2, Ryan T. wrote: > > Hello, > > I am trying to figure out how to setup my clojure project in order to be > able to serve both normal http requests which will return json and also > handle requests over websockets. Is it possible to do both and listen on > same port? or do i need two separate projects? or.... ? > > I did find > this<http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html> > but > from what I read Webbit is not the best solution for what I need. I was > hoping to be able to build my clojure project and use jetty in development > and tomcat on production. > > Thank you for your time > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
