tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik \(mailing lists\)" <devli...@hanik.com>
Subject RE: Web Socket Issue
Date Wed, 02 May 2012 19:47:12 GMT
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:umarfarooq125@gmail.com]
> 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) <
> devlists@hanik.com> wrote:
> 
> > Have the client send a ping message every 10 seconds
> >
> > > -----Original Message-----
> > > From: umar farooq [mailto:umarfarooq125@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-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> 
> 
> --
> *Regards,
> *
> *Muhammad Umar Farooq*
> *Student **BIT* | SEECS, NUST *
> *


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message