Re: [whatwg] Define MessagePort.isConnected or MessagePort.ondisconnect

On Mon, 15 Mar 2010, ATSUSHI TAKAYAMA wrote:
> 
> I think, as Hixie suggested, an array like object to track references of 
> all connected ports would be nice *for SharedWorkers*. For ports created 
> dynamically by new MessageChannel, it doesn't seem to work well.

Why wouldn't it work well for MessageChannel ports?

I've specced something concrete so we have something to discuss here:

   http://www.whatwg.org/specs/web-apps/current-work/#broadcasting-to-many-ports

Hopefully this will give authors a way to do the broadcasting without the 
memory leak you currently have to put up with.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 2 November 2012 22:32:40 UTC