Re: Proposal for API for Data

Michael Tuexen wrote:
> If a channel is not in OPEN, I would expect a send() call to fail. However, its return type
> is void. Why? Or is it intended that the onerror callback is invoked?

See this exchange from the whatwg list:

As far as I can tell, the onerror callback is only invoked if the UA is 
required to "fail the connection" or "close the connection with 
prejudice" (see the last algorithm in this section:, not 
when sending a message to an already-closed connection.

Received on Thursday, 12 April 2012 09:22:42 UTC