This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Right now the spec has example socket.onopen = function () { setInterval(function() { if (socket.bufferedAmount == 0) socket.send(getUpdateData()); }, 50); }; That works, sure, but in many cases there shouldn't be a need for such interval. Especially in worker context something like: socket.onemptybuffer = function () { socket.send(getUpdateData()); }; could work quite nicely.
Yeah, that's probably reasonable. I expect we'll add this in due course. Probably best to let the implementations catch up with the protocol changes and deploy more widely before adding more stuff, though.
This should probably be done at the same time as bug 15209.
Marking this and bug 15209 as REMIND for now. Will reopen in a few months and see whether we've found that it's a real problem or not.