WebSockets support in GlassFish 3.1 (and Grizzly)
By alexismp on Mar 24, 2011
GlassFish 3.1 (Grizzly 1.9.32) implements the -76 version of the WebSocket Protocol and was used to created this series of screencasts. Justin has many more details on what can be done with the stable and supported release of GlassFish. This version of WebSockets is reported to be supported by Google Chrome 6, Safari 5.0.1, and Firefox 4.0 (although disabled by default).
As browsers move to implement newer versions of the WebSocket protocol, you'll need to get into bleeding edge territory (i.e. not supported) and use a more recent version of Grizzly. Either update GlassFish 3.1 to the fresh from the oven version 1.9.33 (see Justin' blog about this) or use grizzly 2.0 directly. The -06 version in particular is supported in 1.9.33. Whichever version you end up using, don't forget to enable support for WebSocket in GlassFish.
Check out also this recent slide deck from Justin.