|
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 * * |
|
Have the client send a ping message every 10 seconds
> -----Original Message----- > From: umar farooq [mailto:[hidden email]] > Sent: Tuesday, May 01, 2012 6:06 PM > To: [hidden email] > 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: [hidden email] For additional commands, e-mail: [hidden email] |
|
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) < [hidden email]> wrote: > Have the client send a ping message every 10 seconds > > > -----Original Message----- > > From: umar farooq [mailto:[hidden email]] > > Sent: Tuesday, May 01, 2012 6:06 PM > > To: [hidden email] > > 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: [hidden email] > For additional commands, e-mail: [hidden email] > > -- *Regards, * *Muhammad Umar Farooq* *Student **BIT* | SEECS, NUST * * |
|
While the API call to set timeout is missing (it is present in Tomcat's
Comet implementation) a "forever" setting would not do you any good Your application has to learn how to deal with disconnects, as they are very common over WAN. I expect that a future version will have that call, but it wont completely solve your problem Best Filip > -----Original Message----- > From: umar farooq [mailto:[hidden email]] > Sent: Wednesday, May 02, 2012 12:45 PM > To: Tomcat Users List > Subject: Re: Web Socket Issue > > 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) < > [hidden email]> wrote: > > > Have the client send a ping message every 10 seconds > > > > > -----Original Message----- > > > From: umar farooq [mailto:[hidden email]] > > > Sent: Tuesday, May 01, 2012 6:06 PM > > > To: [hidden email] > > > 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: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > -- > *Regards, > * > *Muhammad Umar Farooq* > *Student **BIT* | SEECS, NUST * > * --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
| Powered by Nabble | Edit this page |
