featurebase/vendor/github.com/gorilla/websocket
Ben Johnson 1d1cb134ec godep
This commit moves dependency management to use godep and the
new experimental vendoring support in Go 1.5.

NOTE: You must set `GO15VENDOREXPERIMENT` in your bash environment
for vendoring to work properly! See the updated `README` for details.
2015-09-03 13:52:45 -06:00
..
examples godep 2015-09-03 13:52:45 -06:00
.gitignore godep 2015-09-03 13:52:45 -06:00
.travis.yml godep 2015-09-03 13:52:45 -06:00
client.go godep 2015-09-03 13:52:45 -06:00
client_server_test.go godep 2015-09-03 13:52:45 -06:00
conn.go godep 2015-09-03 13:52:45 -06:00
conn_test.go godep 2015-09-03 13:52:45 -06:00
doc.go godep 2015-09-03 13:52:45 -06:00
json.go godep 2015-09-03 13:52:45 -06:00
json_test.go godep 2015-09-03 13:52:45 -06:00
LICENSE godep 2015-09-03 13:52:45 -06:00
README.md godep 2015-09-03 13:52:45 -06:00
server.go godep 2015-09-03 13:52:45 -06:00
server_test.go godep 2015-09-03 13:52:45 -06:00
util.go godep 2015-09-03 13:52:45 -06:00

Gorilla WebSocket

Gorilla WebSocket is a Go implementation of the WebSocket protocol.

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 WebSockets Test Suite using the application in the examples/autobahn subdirectory.

Gorilla WebSocket compared with other packages

gorilla go.net
Protocol supportRFC 6455RFC 6455
Limit size of received messageYesNo
Send pings and receive pongsYesNo
Send close messageYesNo
Read message using io.ReaderYesNo, see note
Write message using io.WriteCloserYesNo, see note
Encode, decode JSON messageYesYes

Note: The go.net io.Reader and io.Writer operate across WebSocket message boundaries. Read returns when the input buffer is full or a message boundary is encountered, Each call to Write sends a message. The Gorilla io.Reader and io.WriteCloser operate on a single WebSocket message.