There's a working sample of a websockets based application in the
websockets branch. This application has helped flesh out some of the
API issues for dealing with a websockets based app and I feel mostly ok
with what's there. But certainly a single use-case tends to flavor the
API toward the needs of that one app. I'll work on some other apps just
to get a real feel for any shortcomings, but right now it's not bad at
all. You can check out the branch at
https://grizzly.dev.java.net/svn/grizzly/branches/websockets/ and take a
look.
Because of the state of websockets support on the browser side, the demo
will only work on Google Chrome but that should hopefully change soon
enough.
I need to get the transparent WS support working that I have in the
trunk (for requests that don't really need a full application as such
backing them) and then i'll merge from branch to trunk. If you don't
mind playing with svn, please check out the branch and give it a spin.
It's working reasonably well as is but needs more eyes to make sure it's
a general enough solution. I'll work up a blog entry explaining the
details and the like but I have two days of 8 hour bootcamp sessions so
I'll probably be relatively detached for the interim.