Your browser does not support the -06 draft just yet. You'll need to
use grizzly that shipped with glassfish 3.1 (1.9.33 iirc) to get that
draft support. The browsers are taking longer to get that support live
than I had wished so I'm probably going to have to reinstate support for
the older draft.
On 5/4/11 4:42 AM, kristian.jaksch_at_gmail.com wrote:
> A couple of weeks ago I downloaded the Grizzly 2.0 jars and tried out
> the websocket sample. Everything worked as expected.
>
> Now I downloaded the Grizzly 2.1 (which should support the 06 websocket
> draft) and tried the websocket
> "org.glassfish.grizzly.samples.websockets". The problem is now I cannot
> get it to work with the same JavaScript client anymore. I've tried it
> with Chrome, Firefox 4 and the latest Chromium build but it doesn't
> work.
>
> I can see that I hit a breakpoint in the
> "isApplicationRequest()"-method on the server side when the Websocket
> is created on client side but after that the websocket does not open
> and when I try to send a message with "Websocket.send()" I get a
> "INVALID_STATE_ERR: DOM Exception 11" when using Chrome.
>
> Can anyone say what's wrong based on this information?
>
> Thanks for help!