1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/vendor/github.com/gorilla/websocket
Zack Scholl 9ad5907b48 Updated packages, new fixed Bolt version
Former-commit-id: da2423082a10392910bbafcd7683c1c93d7aa556 [formerly 708ea8f31cde627a1b64a5a49c80b5faf571740e] [formerly f127dbccd73fbba2526cb7763c1fafccc926596c [formerly 4558c48cdf]]
Former-commit-id: c9d4a6c430c6c5f731e755f270bdf66f89eaa646 [formerly 291db3593d93e63d7234d85f49773ec34c867f1e]
Former-commit-id: d1a21b94fe3760e037c7c02a56ca933123a8cae7
2017-02-02 14:32:55 -05:00
..
.gitignore Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
.travis.yml Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
AUTHORS Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
client.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
compression.go Updated packages, new fixed Bolt version 2017-02-02 14:32:55 -05:00
conn_read_legacy.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
conn_read.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
conn.go Updated packages, new fixed Bolt version 2017-02-02 14:32:55 -05:00
doc.go Updated packages, new fixed Bolt version 2017-02-02 14:32:55 -05:00
json.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
LICENSE Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
mask_safe.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
mask.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
README.md Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00
server.go Updated packages, new fixed Bolt version 2017-02-02 14:32:55 -05:00
util.go Now vendored, with Bolt v1.2.0 2017-01-31 08:05:27 -05:00

Gorilla WebSocket

Gorilla WebSocket is a Go implementation of the WebSocket protocol.

Build Status GoDoc

Documentation

Status

The Gorilla WebSocket package provides a complete and tested implementation of the WebSocket protocol. The package API is stable.

Installation

go get github.com/gorilla/websocket

Protocol Compliance

The Gorilla WebSocket package passes the server tests in the Autobahn Test Suite using the application in the examples/autobahn subdirectory.

Gorilla WebSocket compared with other packages

github.com/gorilla golang.org/x/net
RFC 6455 Features
Passes Autobahn Test SuiteYesNo
Receive fragmented messageYesNo, see note 1
Send close messageYesNo
Send pings and receive pongsYesNo
Get the type of a received data messageYesYes, see note 2
Other Features
Compression ExtensionsExperimentalNo
Read message using io.ReaderYesNo, see note 3
Write message using io.WriteCloserYesNo, see note 3

Notes:

  1. Large messages are fragmented in Chrome's new WebSocket implementation.
  2. The application can get the type of a received data message by implementing a Codec marshal function.
  3. The go.net io.Reader and io.Writer operate across WebSocket frame boundaries. Read returns when the input buffer is full or a frame boundary is encountered. Each call to Write sends a single frame message. The Gorilla io.Reader and io.WriteCloser operate on a single WebSocket message.