fatedier 902f6f84a5 ci: add test for websocket | 6 年之前 | |
---|---|---|
.. | ||
examples | 6 年之前 | |
.gitignore | 6 年之前 | |
.travis.yml | 6 年之前 | |
AUTHORS | 6 年之前 | |
LICENSE | 6 年之前 | |
README.md | 6 年之前 | |
client.go | 6 年之前 | |
client_clone.go | 6 年之前 | |
client_clone_legacy.go | 6 年之前 | |
client_server_test.go | 6 年之前 | |
client_test.go | 6 年之前 | |
compression.go | 6 年之前 | |
compression_test.go | 6 年之前 | |
conn.go | 6 年之前 | |
conn_broadcast_test.go | 6 年之前 | |
conn_read.go | 6 年之前 | |
conn_read_legacy.go | 6 年之前 | |
conn_test.go | 6 年之前 | |
doc.go | 6 年之前 | |
example_test.go | 6 年之前 | |
json.go | 6 年之前 | |
json_test.go | 6 年之前 | |
mask.go | 6 年之前 | |
mask_safe.go | 6 年之前 | |
mask_test.go | 6 年之前 | |
prepared.go | 6 年之前 | |
prepared_test.go | 6 年之前 | |
proxy.go | 6 年之前 | |
server.go | 6 年之前 | |
server_test.go | 6 年之前 | |
util.go | 6 年之前 | |
util_test.go | 6 年之前 | |
x_net_proxy.go | 6 年之前 |
Gorilla WebSocket is a Go implementation of the WebSocket protocol.
The Gorilla WebSocket package provides a complete and tested implementation of the WebSocket protocol. The package API is stable.
go get github.com/gorilla/websocket
The Gorilla WebSocket package passes the server tests in the Autobahn Test Suite using the application in the examples/autobahn subdirectory.
github.com/gorilla | golang.org/x/net | |
---|---|---|
RFC 6455 Features | ||
Passes Autobahn Test Suite | Yes | No |
Receive fragmented message | Yes | No, see note 1 |
Send close message | Yes | No |
Send pings and receive pongs | Yes | No |
Get the type of a received data message | Yes | Yes, see note 2 |
Other Features | ||
Compression Extensions | Experimental | No |
Read message using io.Reader | Yes | No, see note 3 |
Write message using io.WriteCloser | Yes | No, see note 3 |