[GLASSFISH-14502] WebSockets don't work in latest GlassFish Created: 08/Nov/10  Updated: 26/Nov/10  Resolved: 10/Nov/10

Status: Resolved
Project: glassfish
Component/s: grizzly-kernel
Affects Version/s: 3.1
Fix Version/s: 3.1_b28

Type: Bug Priority: Major
Reporter: Bhavanishankar Assignee: Justin Lee
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: Linux


Issue Links:
Dependency
blocks GLASSFISH-13286 Not able to enable WebSocket support ... Resolved
Issuezilla Id: 14,502

 Description   

Following the youtube demo of websockets in glassfish
(http://www.youtube.com/watch?v=dPPDWzzv86U), I downloaded the chat source from
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"

[Community thread
https://glassfish.dev.java.net/servlets/BrowseList?list=dev&by=thread&from=3109513]



 Comments   
Comment by oleksiys [ 08/Nov/10 ]

reassign to Justin

Comment by Ryan Lubke [ 10/Nov/10 ]

This was an issue with the chat application and not with websockets itself. Grizzly 1.9.22 has been pushed
with an updated version of the application which should resolve this issue.

Generated at Sat Aug 29 01:02:27 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.