A fast, well-tested and widely used WebSocket implementation for Go.
Go to file
Halo Arrow 493d31ecb9 Use errors.As and errors.Is
Replace type assertions to error types with errors.As. Replace
comparisons with error values with errors.Is.
2023-08-29 15:06:08 -07:00
.github/workflows Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
examples Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
vendor Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
.editorconfig Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
.gitignore Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
.golangci.yml Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
LICENSE Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
Makefile Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
README.md Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
client.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
client_server_test.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
client_test.go Replace parseURL() with net/url.Parse() (#290) 2017-10-12 19:08:58 -07:00
compression.go Use errors.As and errors.Is 2023-08-29 15:06:08 -07:00
compression_test.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
conn.go Use errors.As and errors.Is 2023-08-29 15:06:08 -07:00
conn_broadcast_test.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
conn_test.go Use errors.As and errors.Is 2023-08-29 15:06:08 -07:00
doc.go docs: Fix typo. (#568) 2020-03-19 10:45:00 -07:00
example_test.go Fix a couple of small typo's (#567) 2020-03-19 06:49:51 -07:00
go.mod Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
go.sum Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
join.go Use errors.As and errors.Is 2023-08-29 15:06:08 -07:00
join_test.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
json.go Use errors.As and errors.Is 2023-08-29 15:06:08 -07:00
json_test.go Use errors.As and errors.Is 2023-08-29 15:06:08 -07:00
mask.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
mask_safe.go Update source to match output from gofmt 1.17 2021-12-17 22:48:51 -05:00
mask_test.go miscellaneous cleanup 2018-08-24 14:03:26 -07:00
prepared.go Use empty struct to protect writing (#566) 2020-03-19 06:52:00 -07:00
prepared_test.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
proxy.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
server.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
server_test.go Changed the method name UnderlyingConn to NetConn to align the methods names with Go 1.18 standard library (#773) 2022-04-17 06:01:17 -07:00
tls_handshake.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
util.go Update go version & add verification/testing tools (#840) 2023-08-27 01:31:45 +05:30
util_test.go Add check for Sec-WebSocket-Key header (#752) 2022-02-15 17:15:20 -08:00

README.md

gorilla/websocket

testing codecov godoc sourcegraph

Gorilla WebSocket is a Go implementation of the WebSocket protocol.

Gorilla Logo

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.