WebSocket upcoming protocol update: HyBi 8 to HyBi 16

106 views
Skip to first unread message

Takeshi Yoshino

unread,
Sep 28, 2011, 2:26:44 AM9/28/11
to chromiu...@chromium.org, chromi...@chromium.org, chromium-...@chromium.org
Hi Chromium users,

We're going to update WebSocket protocol in Chromium to the latest version for Chrome 16 release. Essential change is very small as follows but incompatible with old one. Please update your servers to support it.

- Origin header name: Sec-WebSocket-Origin -> Origin
- Sec-WebSocket-Version header value: 8 -> 13

Please see the spec for detail.

----

Using this opportunity, I'd like to give you one more heads up about send() method.

Not to break existing scripts, send() method is returning true but is now void in the API spec. At some point we'll change the return type of send() to void. Please make sure that your script doesn't rely on the return value of send() method but catches failures by setting up onclose properly.

Please see the spec for detail.

Thanks,
Takeshi
Reply all
Reply to author
Forward
0 new messages