/lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-April/068264.html

https://github.com/whatwg/whatwg.org · HTML · 86 lines · 71 code · 8 blank · 7 comment · 0 complexity · 176be0d876181f0aef53149576540530 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] WebSocket opening handshake
  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%20opening%20handshake&In-Reply-To=%3Cop.vbj1ijiridj3kv%40simon-pieterss-macbook.local%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="068263.html">
  16. <LINK REL="Next" HREF="068272.html">
  17. </HEAD>
  18. <BODY BGCOLOR="#ffffff">
  19. <H1>[whatwg] WebSocket opening handshake</H1>
  20. <!--htdig_noindex-->
  21. <B>Simon Pieters</B>
  22. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20opening%20handshake&In-Reply-To=%3Cop.vbj1ijiridj3kv%40simon-pieterss-macbook.local%3E"
  23. TITLE="[whatwg] WebSocket opening handshake">simonp at opera.com
  24. </A><BR>
  25. <I>Thu Apr 22 01:21:45 PDT 2010</I>
  26. <P><UL>
  27. <LI>Previous message: <A HREF="068263.html">[whatwg] WebSocket length of binary frames and closing handshake
  28. </A></li>
  29. <LI>Next message: <A HREF="068272.html">[whatwg] Should scripts and plugins in contenteditable content be enabled or disabled?
  30. </A></li>
  31. <LI> <B>Messages sorted by:</B>
  32. <a href="date.html#68264">[ date ]</a>
  33. <a href="thread.html#68264">[ thread ]</a>
  34. <a href="subject.html#68264">[ subject ]</a>
  35. <a href="author.html#68264">[ author ]</a>
  36. </LI>
  37. </UL>
  38. <HR>
  39. <!--/htdig_noindex-->
  40. <!--beginarticle-->
  41. <PRE>establishing a WebSocket connection:
  42. [[
  43. 41. ... or if there are any entries in the fields list whose names are the
  44. empty string, then fail the WebSocket connection and abort these steps. ...
  45. ]]
  46. I think it is better to check for this while parsing the fields, by
  47. checking if the name byte array is empty here:
  48. [[
  49. 34. Read a byte from the server.
  50. ...
  51. If the byte is 0x3A (ASCII :)
  52. Move on to the next step.
  53. ]]
  54. --
  55. Simon Pieters
  56. Opera Software
  57. </PRE>
  58. <!--endarticle-->
  59. <!--htdig_noindex-->
  60. <HR>
  61. <P><UL>
  62. <!--threads-->
  63. <LI>Previous message: <A HREF="068263.html">[whatwg] WebSocket length of binary frames and closing handshake
  64. </A></li>
  65. <LI>Next message: <A HREF="068272.html">[whatwg] Should scripts and plugins in contenteditable content be enabled or disabled?
  66. </A></li>
  67. <LI> <B>Messages sorted by:</B>
  68. <a href="date.html#68264">[ date ]</a>
  69. <a href="thread.html#68264">[ thread ]</a>
  70. <a href="subject.html#68264">[ subject ]</a>
  71. <a href="author.html#68264">[ author ]</a>
  72. </LI>
  73. </UL>
  74. <hr>
  75. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  76. mailing list</a><br>
  77. <!--/htdig_noindex-->
  78. </body></html>