A fast, well-tested and widely used WebSocket implementation for Go.
Go to file
tebuka a62d9d2a84 Handle net.Error Temporary() deprecation
See https://go.dev/issue/45729.

- Remove hideTempError

  The hideTempError function was used to prevent connection methods from
  returning a net.Error with Temporary() == true.

  Connection methods do not support retry after returning any net.Error,
  including errors with Temporary() == true.

  Presumably hideTempError was used to prevent applications from
  futilely retrying connection method calls on temporary errors.

  The hideTempError function is not needed now that net.Error
  Temporary() is deprecated.

- Remove use of the deprecated net.Error Temporary() method in the
  default ping handler by ignoring all errors returned from
  WriteControl. Ignoring errors allows the application to continue
  reading messages after a write error and is consistent with how the
  default close handler calls WriteControl.
2024-07-02 22:52:06 +10:00
.circleci Set min Go version to 1.20 (#930) 2024-06-19 14:40:57 +10:00
.github Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
examples Update README.md, replace master to main 2024-06-19 17:13:16 +10:00
.gitignore Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
AUTHORS Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
LICENSE Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
README.md Update README.md, replace master to main 2024-06-19 17:13:16 +10:00
client.go Move doHandshake to client.go 2024-07-02 22:34:31 +10:00
client_server_test.go Improve bufio handling in Upgrader.Upgrade 2024-07-01 13:41:19 +10:00
client_test.go Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
compression.go Revert " Update go version & add verification/testing tools (#840)" 2024-05-01 18:51:54 +05:30
compression_test.go Update for deprecated ioutil package (#931) 2024-06-19 14:44:41 +10:00
conn.go Handle net.Error Temporary() deprecation 2024-07-02 22:52:06 +10:00
conn_broadcast_test.go Update for deprecated ioutil package (#931) 2024-06-19 14:44:41 +10:00
conn_test.go Update for deprecated ioutil package (#931) 2024-06-19 14:44:41 +10:00
doc.go docs: Fix typo. (#568) 2020-03-19 10:45:00 -07:00
example_test.go Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
go.mod Unbundle x/net/proxy and update to recent version 2024-06-19 20:11:25 -04:00
go.sum Unbundle x/net/proxy and update to recent version 2024-06-19 20:11:25 -04:00
join.go Add JoinMessages 2019-02-04 16:42:47 -08:00
join_test.go Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
json.go Misc cleanup 2017-07-18 13:21:30 -07:00
json_test.go Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
mask.go Revert " Update go version & add verification/testing tools (#840)" 2024-05-01 18:51:54 +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 Reverts to v1.5.0 2024-06-13 23:18:03 -04:00
prepared.go Use empty struct to protect writing (#566) 2020-03-19 06:52:00 -07:00
prepared_test.go Use crypto/rand for mask key 2024-07-01 13:40:25 +10:00
proxy.go Unbundle x/net/proxy and update to recent version 2024-06-19 20:11:25 -04:00
server.go Improve bufio handling in Upgrader.Upgrade 2024-07-01 13:41:19 +10:00
server_test.go Improve bufio handling in Upgrader.Upgrade 2024-07-01 13:41:19 +10:00
util.go Revert " Update go version & add verification/testing tools (#840)" 2024-05-01 18:51:54 +05:30
util_test.go Reverts to v1.5.0 2024-06-13 23:18:03 -04:00

README.md

Gorilla WebSocket

GoDoc CircleCI

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.