2023-11-28 12:05:07 +01:00
|
|
|
# gorilla/websocket
|
2021-08-12 21:03:24 +02:00
|
|
|
|
2023-11-28 12:05:07 +01:00
|
|
|

|
|
|
|
[](https://codecov.io/github/gorilla/websocket)
|
|
|
|
[](https://godoc.org/github.com/gorilla/websocket)
|
|
|
|
[](https://sourcegraph.com/github.com/gorilla/websocket?badge)
|
2021-08-12 21:03:24 +02:00
|
|
|
|
2023-11-28 12:05:07 +01:00
|
|
|
Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol.
|
2021-08-12 21:03:24 +02:00
|
|
|
|
2023-11-28 12:05:07 +01:00
|
|
|

|
2022-05-02 15:05:18 +02:00
|
|
|
|
|
|
|
|
2021-08-12 21:03:24 +02:00
|
|
|
### Documentation
|
|
|
|
|
|
|
|
* [API Reference](https://pkg.go.dev/github.com/gorilla/websocket?tab=doc)
|
2024-06-10 09:43:38 +02:00
|
|
|
* [Chat example](https://github.com/gorilla/websocket/tree/main/examples/chat)
|
|
|
|
* [Command example](https://github.com/gorilla/websocket/tree/main/examples/command)
|
|
|
|
* [Client and server example](https://github.com/gorilla/websocket/tree/main/examples/echo)
|
|
|
|
* [File watch example](https://github.com/gorilla/websocket/tree/main/examples/filewatch)
|
|
|
|
* [Write buffer pool example](https://github.com/gorilla/websocket/tree/main/examples/bufferpool)
|
2021-08-12 21:03:24 +02:00
|
|
|
|
|
|
|
### Status
|
|
|
|
|
|
|
|
The Gorilla WebSocket package provides a complete and tested implementation of
|
|
|
|
the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) 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](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn
|
2024-06-10 09:43:38 +02:00
|
|
|
subdirectory](https://github.com/gorilla/websocket/tree/main/examples/autobahn).
|