mirror of https://github.com/gorilla/websocket.git
1d5465562b
Import golang.org/x/net/proxy instead of using the bundle in x_net_proxy.go. There's no need to avoid the dependency on golang.org/x/net/proxy now that Go's module system is in widespread use. Change Dialer.DialContext to pass contexts as an argument to the dial function instead of tunneling the context through closures. Tunneling is no longer needed because the proxy package supports contexts. The version of the proxy package in the bundle predates contexts! Simplify the code for calculating the base dial function. Prevent the HTTP proxy dialer from leaking out of the websocket package by selecting the HTTP proxy dialer directly in the websocket package. Previously, the HTTP dialer was registered with the proxy package. |
||
---|---|---|
.circleci | ||
.github | ||
examples | ||
.gitignore | ||
AUTHORS | ||
LICENSE | ||
README.md | ||
client.go | ||
client_server_test.go | ||
client_test.go | ||
compression.go | ||
compression_test.go | ||
conn.go | ||
conn_broadcast_test.go | ||
conn_test.go | ||
doc.go | ||
example_test.go | ||
go.mod | ||
go.sum | ||
join.go | ||
join_test.go | ||
json.go | ||
json_test.go | ||
mask.go | ||
mask_safe.go | ||
mask_test.go | ||
prepared.go | ||
prepared_test.go | ||
proxy.go | ||
server.go | ||
server_test.go | ||
tls_handshake.go | ||
tls_handshake_116.go | ||
util.go | ||
util_test.go |
README.md
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 Test Suite using the application in the examples/autobahn subdirectory.