WebSockets?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

WebSockets?

Will Iverson
Does Ratpack support WebSockets?

I checked the docs, didn't see anything... might just be blind.  :P

Cheers,
-Will
Reply | Threaded
Open this post in threaded view
|

Re: WebSockets?

dbirtwell
I don't know if Ratpack has any Socket Support itself, but

http://jameswilliams.be/blog/entry/tags/Ratpack 

more specifically:

http://jameswilliams.be/blog/entry/211

discusses creating a a Chat Server using the PREVIOUS branch of Ratpack and WebSocket4J

The new branch of Ratpack (the one this forum is discussing) has several syntax differences than the one discussed in that blog, but I think if you play around you should figure out how to use WebSocket4J with Ratpack.

BTW - I'm not one of the Ratpack developers and have just been playing around with it in my spare time the last couple of week.

Hope that helps,

Dave
Reply | Threaded
Open this post in threaded view
|

Re: WebSockets?

Luke Daley
Administrator
Unfortunately there is nothing in Ratpack for WebSockets right now.

The eventual goal is to support sockjs, which is a gracefully degrading communication protocol. It uses websockets where possible, but degrades back to long polling if websocket support is not there.

I'd be more than happy to accept contributions for getting some kind of WebSocket support in there.