]> Cypherpunks repositories - gostls13.git/commit
websocket: Implements new version of WebSocket protocol.
authorFumitoshi Ukai <ukai@google.com>
Fri, 26 Aug 2011 03:12:08 +0000 (13:12 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 26 Aug 2011 03:12:08 +0000 (13:12 +1000)
commitebf19fb1713f5c046b6566825ad1d3edea5656ab
tree22158acb30401aef4461de70f1fd3e993a2d71ab
parent7a3095121e2e6b17f39e40ef6d9b3ffd4244e419
websocket: Implements new version of WebSocket protocol.

This introduces new APIs.
- DialConfig can open client connection using Config, so user can specify protocol version, tls.Config if necessary.

- Message can be used to send/receive text/binary data in a frame.
- JSON can be used to send/receive JSON data in a frame.

R=golang-dev, adg, rsc, m, tarmigan, raul.san, yohcop
CC=golang-dev
https://golang.org/cl/4635084
src/pkg/websocket/Makefile
src/pkg/websocket/client.go
src/pkg/websocket/hixie.go [new file with mode: 0644]
src/pkg/websocket/hixie_test.go [new file with mode: 0644]
src/pkg/websocket/hybi.go [new file with mode: 0644]
src/pkg/websocket/hybi_test.go [new file with mode: 0644]
src/pkg/websocket/server.go
src/pkg/websocket/websocket.go
src/pkg/websocket/websocket_test.go