Posts

Showing posts from May, 2012

Atmosphere Websockets & Comet with Spring MVC

Image
Since writing this guide, Spring has come out with their own Comet and Websocket implementations. I suggest you first read through their guides before deciding on atmosphere as your Comet & Websocket solution. 1.  Messaging with Stomp over Websockets 2.  Spring Messaging On to the guide... Feel free to clone the source of this project on github. springMVC-atmosphere-comet-websockets The Websocket protocol is defined by W3C  here . The protocol is considered an HTTP upgrade protocol. Essentially what happens is, a websocket request is made by a client browser, via the HTTP protocol. Once, the request is in, the server should respond with a success. Then the browser and server establish a TCP link to handle communication from there on out. This protocol enables bi-directional communication between a client and server. Here is a link to browser and servers that support Websockets and/or Comet:  comet/websocket support link