|
Hi, The WebSockets API spec states: "A WebSocket object with an open connection must not be garbage collected if there are any event listeners registered for message events."The Mozilla's implementation, however, also keeps alive the object if it has any event listeners registered for open events. We are calling them (the message and open events) as 'strong' events. You can read the discussion about that in comments #5, #6 and #9 of: https://bugzilla.mozilla.org/show_bug.cgi?id=572975 Now, there has been raised two more possibilities in the discussion (from comment #48): * When there are not sent outgoing messages; * When at least one open or message events has been received, and there are close events listeners (the close event could be flagged as 'strong' in this case);We, from Mozilla, would like to know what do you think about that, if it makes sense or not. Thanks! Regards, Wellington. --- Wellington Fernando de Macedo Computer Engineering Phone Number: +55 (16) 8144.8607 |
[whatwg] Collection garbage on WebSockets
Wellington Fernando de Macedo Mon, 28 Jun 2010 07:14:19 -0700
- [whatwg] Collection garbage on WebSockets Wellington Fernando de Macedo
- Re: [whatwg] Collection garbage on WebS... Simon Pieters
- Re: [whatwg] Collection garbage on ... Wellington Fernando de Macedo
- Re: [whatwg] Collection garbage... Simon Pieters
