Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement websocket in Dropwizard [duplicate]

I have a requirement to implement websocket with a dropwizard project. However i am unable to find any document related to it. Can any one point out resources for the same.

like image 698
Balachandar Avatar asked Feb 07 '13 06:02

Balachandar


2 Answers

I've been dealing with the same problem, and thought I would like to share my solution: http://cvwjensen.wordpress.com/2014/08/02/websockets-in-dropwizard/

I use the Atmosphere framework and the solution defaults to using websockets, but can downgrade to long-polling if required.

That should be enough to get you started...

like image 139
Christian von Wendt-Jensen Avatar answered Oct 22 '22 13:10

Christian von Wendt-Jensen


I'm looking to do this too. This is the best information I've found so far:

Supposedly one of the most popular websocket frameworks out there works well with Jersey (Jersey is bundled with Dropwizard). You can find more about it here: https://github.com/Atmosphere/atmosphere

Also, someone has published a repository integrating the two of them together: https://github.com/mgutz/dropwizard-atmosphere/

like image 45
Nate Avatar answered Oct 22 '22 14:10

Nate