Skip to main content

Jean-Francois Arcand: Using Atmosphere’s JQuery Plug In to build applications supporting both Websocket and Comet

Jean-Francois Arcand demonstrates Using Atmosphere’s JQuery Plug In to build applications supporting both Websocket and Comet:

Until all Browsers and WebServers properly supports the Websocket protocol, it will be difficult to write portable asynchronous applications. Not anymore, using the new JQuery Atmosphere Plugin which is able to auto-detect which transport (Websocket or Comet) to use based on what the Browser and Web Server support. Since the Websocket protocol is relatively new, not all web servers and browser supports it which means writing a websocket application always lock your users with a limited set of browsers and web server. For example, as of today, only Jetty 8, Resin 4 and GlassFish 3.1 supports Websocket on the server side, and Chrome 4 and Safari 5 on client side. Eventually they may all support the protocol, but it will take a couple of years before it happens...

Community: Java Enterprise