But it is not requirement. I want to send ping once to open the socket after that it should depend on user when he wants to close the connection. Cannot I explicitly call some method to set timeout forever on client or server side. Or any other mechanism..??
On Wed, May 2, 2012 at 10:04 AM, Filip Hanik (mailing lists) < devli...@hanik.com> wrote: > Have the client send a ping message every 10 seconds > > > -----Original Message----- > > From: umar farooq [mailto:umarfarooq...@gmail.com] > > Sent: Tuesday, May 01, 2012 6:06 PM > > To: users@tomcat.apache.org > > Subject: Web Socket Issue > > > > Hi All, > > I am trying to use Chat example of WebSocket given in Tomcat > > version > > 7.0.27. Problem I faced are here. > > > > 1) After opening the web socket it closes the socket automatically after > > 20 > > sec. I want connection open until Guest (i.e. user) explicitly closes > > it. > > 2) Second thing is that It broad casts the message to all users but what > > i > > want is to send message to a specific group of people. > > Is there any method to send message to specific group.?? I checked API > > for > > WebSocket but there is no method for multicast. > > > > Kindly help me I have very short time to implement it. > > > > Thanks.. > > -- > > *Regards, > > * > > *Muhammad Umar Farooq* > > *Student **BIT* | SEECS, NUST * > > * > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Regards, * *Muhammad Umar Farooq* *Student **BIT* | SEECS, NUST * *