mirror of https://github.com/gorilla/websocket.git
620e1809ce
A previous change to the package removed calls to the deprecated net.Error Temporary() method. This change removes the cruft left behind by that change. - Delete the hideTempError function. Because applications should not call net.Error Temporary() method, there's no need to force the Temporary() return value to false. - Replace the internal errWriteTimeout error with the standard os.ErrDeadlineExceeded. - Prior to the removing the calls to Temporary(), the default ping and close handlers ignored timeout errors by checking for net.Error Temporary() == true. The current code does not ignore timeout errors. Update the handlers to ignore timeout errors by checking for os.ErrDeadlineExceeded. Unrelated to the above: Reduce noise in the test output by ignoring the error from the compress/flate reader Close method. |
||
---|---|---|
.github/workflows | ||
examples | ||
vendor | ||
.editorconfig | ||
.gitignore | ||
.golangci.yml | ||
LICENSE | ||
Makefile | ||
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 | ||
util.go | ||
util_test.go |
README.md
gorilla/websocket
Gorilla WebSocket is a Go implementation of the WebSocket protocol.
Documentation
- API Reference
- Chat example
- Command example
- Client and server example
- File watch example
- Write buffer pool example
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.