dev@glassfish.java.net

Re: websockets in glassfish broken?

From: Bhavanishankar <bshankar_at_sun.com>
Date: Mon, 08 Nov 2010 22:37:33 +0530

Thanks. To keep track of this, I filed
https://glassfish.dev.java.net/issues/show_bug.cgi?id=14502 (filed under
grizzly-kernel, please recategorize/re-prioritize accordingly)

-Bhavani.

On 11/08/2010 08:43 PM, Justin Lee wrote:
> I've heard from several folks experiencing that problem but I just
> haven't had time to run it down. Websockets still figure pretty low
> on the priority scale for now but I'm trying to get back around to it
> soon.
>
> On 11/7/10 7:30 AM, Bhavanishankar wrote:
>> Following the youtube demo of websockets in glassfish
>> <http://www.youtube.com/watch?v=dPPDWzzv86U>, I downloaded the chat
>> source
>> <https://grizzly.dev.java.net/source/browse/grizzly/trunk/code/samples/websockets/chat/>,
>> built it and deployed on the latest 3.1-SNAPSHOT of GlassFish.
>>
>> But when I access localhost:8080/grizzly-websockets-chat and login as
>> "Bhavani", it shows:* Bhavani: has left the chat
>>
>> *I also tried creating WebSocket via a simple html:
>>
>> <script>
>> ws = new
>> WebSocket("ws://192.168.1.100:8080/grizzly-websockets-chat/chat");
>> ws.onclose = function()
>> {
>> alert("socket closed");
>> };
>> </script>
>>
>> and I always see "socket closed"
>>
>> *Am I missing something?
>>
>> PS: I tried with different browsers (chrome, opera -- all latest
>> versions which support websockets), and also tried switching
>> grizzly-http-servlet versions 1.9.21, 1.9.20 in my pom.xml, but
>> nothing seems to help.
>>
>> Thanks,
>> Bhavani.
>>
>> *
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>