Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F267E9F69 for ; Tue, 1 May 2012 19:43:46 +0000 (UTC) Received: (qmail 15518 invoked by uid 500); 1 May 2012 19:43:46 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 15431 invoked by uid 500); 1 May 2012 19:43:46 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 15422 invoked by uid 99); 1 May 2012 19:43:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 19:43:46 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of umarfarooq125@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 19:43:39 +0000 Received: by yhoo21 with SMTP id o21so2804331yho.18 for ; Tue, 01 May 2012 12:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DcsyfoR1SWCKedsMZkdLkEMaUNk8zWmIPO597K/860Q=; b=U+J20/WDIJmYs8QEoNz9GVMgp/rWbWlGhHWoBSlF/TKzfsGk0kISJO+gszbd5esxGo b/6RokRjDxOmBpCufhsZrQRrt2UOC+XN9SCrF+BBb6Y/ByObNOLdLTcz0SHbwZynp2nw zC7ai6WxP79elUN4Rd9iPj83a3UpKE3tDeSF2e/b2otjpyD8JYu9TkM7bDla5E3geGwi DBVfG014VPIO3kH4QDQqsjoAUBQ+1KI5kqXtryqTaWB8rLlp8HkcndGFdW5MZcdHotBb acPlbi8qfnDV5uX9IOPWEStjKuJK18vNtg6QZCHn06HGMJZK165p5x1O9woDftvc7WAN x5Aw== MIME-Version: 1.0 Received: by 10.50.194.202 with SMTP id hy10mr2913815igc.25.1335901398939; Tue, 01 May 2012 12:43:18 -0700 (PDT) Received: by 10.64.77.109 with HTTP; Tue, 1 May 2012 12:43:18 -0700 (PDT) In-Reply-To: <4FA0344F.2050001@apache.org> References: <4FA0344F.2050001@apache.org> Date: Tue, 1 May 2012 12:43:18 -0700 Message-ID: Subject: Re: Problem in WebSocket From: umar farooq To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I got it. I will make my application to handle groups. but how can I increase keep alive time..?? to be specific .. what steps do I need to follow..? On 5/1/12, Mark Thomas wrote: > On 01/05/2012 19:27, umar farooq wrote: >> 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. > Correct. Currently it uses the keep-alive timeout for the socket. Extend > the timeout or use ping messages to keep the channel open. > >> 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. > No it doesn't. Messages are sent to single connections. > >> Is there any method to send message to specific group.?? > No. > >> I checked API for WebSocket but there is no method for multicast. > Correct. It is an application concern to maintain the groups it is > interested in and send messages to members as required. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > -- *Regards, * *Muhammad Umar Farooq* *Student **BIT* | SEECS, NUST * * --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org