/lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-March/068008.html

https://github.com/whatwg/whatwg.org · HTML · 80 lines · 69 code · 4 blank · 7 comment · 0 complexity · 607be92d9af490bbef2bc835c5dd5c25 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] WebSocket bufferedAmount includes overhead or not
  5. </TITLE>
  6. <LINK REL="Index" HREF="index.html" >
  7. <LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20bufferedAmount%20includes%20overhead%20or%20not&In-Reply-To=%3C4BB2D5F1.3060106%40mit.edu%3E">
  8. <META NAME="robots" CONTENT="index,nofollow">
  9. <style type="text/css">
  10. pre {
  11. white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
  12. }
  13. </style>
  14. <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
  15. <LINK REL="Previous" HREF="067980.html">
  16. <LINK REL="Next" HREF="068009.html">
  17. </HEAD>
  18. <BODY BGCOLOR="#ffffff">
  19. <H1>[whatwg] WebSocket bufferedAmount includes overhead or not</H1>
  20. <!--htdig_noindex-->
  21. <B>Boris Zbarsky</B>
  22. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20bufferedAmount%20includes%20overhead%20or%20not&In-Reply-To=%3C4BB2D5F1.3060106%40mit.edu%3E"
  23. TITLE="[whatwg] WebSocket bufferedAmount includes overhead or not">bzbarsky at MIT.EDU
  24. </A><BR>
  25. <I>Tue Mar 30 21:56:17 PDT 2010</I>
  26. <P><UL>
  27. <LI>Previous message: <A HREF="067980.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  28. </A></li>
  29. <LI>Next message: <A HREF="068009.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  30. </A></li>
  31. <LI> <B>Messages sorted by:</B>
  32. <a href="date.html#68008">[ date ]</a>
  33. <a href="thread.html#68008">[ thread ]</a>
  34. <a href="subject.html#68008">[ subject ]</a>
  35. <a href="author.html#68008">[ author ]</a>
  36. </LI>
  37. </UL>
  38. <HR>
  39. <!--/htdig_noindex-->
  40. <!--beginarticle-->
  41. <PRE>On 3/30/10 10:22 AM, Jonas Sicking wrote:
  42. &gt;<i> Making it implementation dependent is likely to lead to website
  43. </I>&gt;<i> incompatibilities. Such as:
  44. </I>&gt;<i>
  45. </I>&gt;<i> ws = new WebSocket(...);
  46. </I>&gt;<i> ws.onopen = function() {
  47. </I>&gt;<i> ws.send(someString);
  48. </I>&gt;<i> if (ws.bufferedAmount&gt; X) {
  49. </I>&gt;<i> doStuff();
  50. </I>
  51. Can bufferedAmount not change due to data actually hitting the network
  52. during the execution of this code? As in, will all the someString data
  53. be buffered immediately after that send() call?
  54. -Boris
  55. </PRE>
  56. <!--endarticle-->
  57. <!--htdig_noindex-->
  58. <HR>
  59. <P><UL>
  60. <!--threads-->
  61. <LI>Previous message: <A HREF="067980.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  62. </A></li>
  63. <LI>Next message: <A HREF="068009.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  64. </A></li>
  65. <LI> <B>Messages sorted by:</B>
  66. <a href="date.html#68008">[ date ]</a>
  67. <a href="thread.html#68008">[ thread ]</a>
  68. <a href="subject.html#68008">[ subject ]</a>
  69. <a href="author.html#68008">[ author ]</a>
  70. </LI>
  71. </UL>
  72. <hr>
  73. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  74. mailing list</a><br>
  75. <!--/htdig_noindex-->
  76. </body></html>