Hi,<div><br></div><div>I noticed that WebSocket spec updated to not inlcude framing overhead in bufferedAmount. <a href="http://lists.whatwg.org/pipermail/commit-watchers-whatwg.org/2010/003971.html">http://lists.whatwg.org/pipermail/commit-watchers-whatwg.org/2010/003971.html</a></div>

<div>I tried to implement it in WebKit, but found it make hard to implement correctly. <a href="https://bugs.webkit.org/show_bug.cgi?id=35571">https://bugs.webkit.org/show_bug.cgi?id=35571</a></div><div>It&#39;s easy after WebSocket is closed (just add length of message), but while it&#39;s open, we&#39;ll manage buffer including frame bytes and underlying socket will write arbitrary length of the buffer (may not be on frame boundary)</div>

<div>To get bufferdAmount correctly without framing overhead, we need to parse the buffer again.  It&#39;s not light operation and it&#39;s challenge to make it effective.</div><div>I think including frame overhead is much easier.</div>

<div>Could you revert it?</div><div><br></div><div>-- </div><div>Fumitoshi Ukai</div><div><br></div>