[whatwg] Issues with Web Sockets API
Ian Hickson
ian at hixie.ch
Thu Sep 3 18:46:15 PDT 2009
On Thu, 13 Aug 2009, Alexey Proskuryakov wrote:
> 13.08.2009, в 4:42, Ian Hickson написал(а):
> > >
> > > A note explaining that the close event will be dispatched at
> > > server's discretion (or on subsequent connection timeout),
> > > potentially long time after close() is called, would likely make the
> > > intention clearer.
> >
> > It won't be long after the close().
>
> Why not? My understanding is that it can take arbitrary amount of time -
> the server can choose not to close its side of connection for years, and
> to send data over it.
It's unrelated to the server.
You call close(), the UA closes the connection, thus the connection is
closed, which causes the UA to fire an event.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list