[squeak-dev] Support for WebSocket version 7 or above in the WebClient package

Balázs Kósi rebmekop at gmail.com
Mon Sep 19 12:45:09 UTC 2011


Hi!

Did anybody implement support for WebSocket version 7 or above for WebClient?

For the new protocol we added to the response in WebRequest >>
asWebSocket the following:

resp headerAt: 'Sec-WebSocket-Accept' put: (
      (SHA1 hashMessage: field,
'258EAFA5-E914-47DA-95CA-C5AB0DC85B11') base64Encoded)

But the framing protocol also changed:

Old protocol: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-06#page-17
New protocol: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07#page-17

Thanks: Balázs



More information about the Squeak-dev mailing list