W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

WebSocket API - server initiated close

From: Zhong Yu <zhong.j.yu@gmail.com>
Date: Thu, 14 Mar 2013 23:53:41 -0500
Message-ID: <CACuKZqFh_0XzHw5Hejdq+5ofY7YNrWw2mO-f2PMg+Du-k5E6rg@mail.gmail.com>
To: public-webapps@w3.org
Hi,

If a client app connects to a server through WebSocket API, and server
sends a close frame, how is the client app notified? Does the client
stack automatically respond with a close frame, then raise a "close"
event?

Meanwhile, if the client app is invoking send() while the server close
frame arrives, what happens? The paragraph about "bufferedAmount"
implies that send() won't fail, is that correct?

Thanks,
Zhong Yu
Received on Friday, 15 March 2013 13:56:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 14:37:04 UTC