Re: [rtcweb] Future requirement: RTC-Web apps must work through interface switching

<> Tue, 04 October 2011 09:52 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 9776821F8C5A for <>; Tue, 4 Oct 2011 02:52:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.766
X-Spam-Status: No, score=-2.766 tagged_above=-999 required=5 tests=[AWL=-0.166, BAYES_00=-2.599]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id T3FQK2UvfMfr for <>; Tue, 4 Oct 2011 02:52:56 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id E33A321F8C57 for <>; Tue, 4 Oct 2011 02:52:55 -0700 (PDT)
Received: from ( []) by (Switch-3.4.4/Switch-3.4.3) with ESMTP id p949tYOB010287; Tue, 4 Oct 2011 12:55:57 +0300
Received: from ([]) by over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 4 Oct 2011 12:55:31 +0300
Received: from ( by ( with Microsoft SMTP Server (TLS) id; Tue, 4 Oct 2011 11:53:55 +0200
Received: from ([]) by ([]) with mapi id 14.01.0339.002; Tue, 4 Oct 2011 11:53:55 +0200
Thread-Topic: [rtcweb] Future requirement: RTC-Web apps must work through interface switching
Thread-Index: AcyBw8LOCbj0Q27JT3eGKgpYq050b///5dcA//56Y7A=
Date: Tue, 04 Oct 2011 09:53:55 +0000
Message-ID: <>
References: <> <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
x-originating-ip: []
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginalArrivalTime: 04 Oct 2011 09:55:31.0301 (UTC) FILETIME=[C0BB9950:01CC827B]
X-Nokia-AV: Clean
Subject: Re: [rtcweb] Future requirement: RTC-Web apps must work through interface switching
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Tue, 04 Oct 2011 09:52:56 -0000


Iñaki Baz Castillo wrote:
>In WebSocket a disconnect() event will be called by JS API if the connection is
>terminated (this can occur when the server explicity terminates the
>connection or when the WebSocket client tries to send a message over the
>WebSocket connection and gets an error because the connection "does not
>work anymore"). For the last case, a pinging mechanism from the client is a
>good choice.

Is it possible for the browser to call disconnect() also for more explicit reasons, such that it has itself learned that the current interface/socket has become disconnected? This way the JS application would get the signal immediately rather than having to wait for the next ping. In that case this should be OK. The disconnect() function should then have the code for re-creating the websocket connection, this time over the new (default) interface, and recreating the necessary state on top of it in the application level. This would create a few seconds of disconnect between the client and the server, which might be OK for most apps. Perfect handling of this case, i.e. being able to open the new connection before the old one is lost, would probably require changes in the Websocket API. Or, use of MPTCP.