A bit off-topic, but in some situations where bidirectional communication is not necessary, one might consider EventSource instead of Websockets to push data from server to the client. For some reason, EventSource is not as well known as Websockets.
It has some advantages like being more backwards compatible. http://www.html5rocks.com/en/tutorials/eventsource/basics/ http://stackoverflow.com/questions/5195452/websockets-vs-server-sent-events-eventsource https://github.com/Yaffle/EventSource Ustun On Wednesday, July 17, 2013 8:07:34 AM UTC+3, Sean Corfield wrote: > > At work we're starting down the path of building a new piece of > functionality based on WebSockets and the external team we're working > with is a Node.js shop so their go to solution is Socket.IO and > they've produced a very nice front end in CoffeeScript and a prototype > back end on Node.js. > > I'd really like to have our back end on the JVM, of course, and so I'd > like to find a JVM-based Socket.IO solution that I use from/with > Clojure... > > This seems like a reasonable option: > > https://github.com/mrniko/netty-socketio > > A little bit of experimentation with lein-try (Thank you Ryan!) shows > that it's pretty easy to get a basic server up and running in the REPL > - and I was able to get several of their demos running unchanged > against Clojure, instead of their Java applications, so that was > promising. > > Are there other folks out there doing Socket.IO stuff with Clojure? > What approaches have you taken? > > Obviously, we could run Node.js and have it hit a Clojure-based REST > API to do the integration, and that might be less pain long term > but... > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > World Singles, LLC. -- http://worldsingles.com/ > > "Perfection is the enemy of the good." > -- Gustave Flaubert, French realist novelist (1821-1880) > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.