2023-08-26 23:01:45 +03:00
|
|
|
# gorilla/websocket
|
2013-10-16 20:41:47 +04:00
|
|
|
|
2023-08-26 23:01:45 +03:00
|
|
|
![testing](https://github.com/gorilla/websocket/actions/workflows/test.yml/badge.svg)
|
|
|
|
[![codecov](https://codecov.io/github/gorilla/websocket/branch/main/graph/badge.svg)](https://codecov.io/github/gorilla/websocket)
|
|
|
|
[![godoc](https://godoc.org/github.com/gorilla/websocket?status.svg)](https://godoc.org/github.com/gorilla/websocket)
|
|
|
|
[![sourcegraph](https://sourcegraph.com/github.com/gorilla/websocket/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/websocket?badge)
|
2019-06-29 21:55:28 +03:00
|
|
|
|
2023-08-26 23:01:45 +03:00
|
|
|
Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol.
|
|
|
|
|
|
|
|
![Gorilla Logo](https://github.com/gorilla/.github/assets/53367916/d92caabf-98e0-473e-bfbf-ab554ba435e5)
|
2013-10-16 20:41:47 +04:00
|
|
|
|
2022-01-04 04:49:10 +03:00
|
|
|
|
2013-10-29 17:29:20 +04:00
|
|
|
### Documentation
|
2013-10-16 20:41:47 +04:00
|
|
|
|
2020-03-19 16:46:16 +03:00
|
|
|
* [API Reference](https://pkg.go.dev/github.com/gorilla/websocket?tab=doc)
|
2013-10-16 20:41:47 +04:00
|
|
|
* [Chat example](https://github.com/gorilla/websocket/tree/master/examples/chat)
|
2015-10-18 23:32:14 +03:00
|
|
|
* [Command example](https://github.com/gorilla/websocket/tree/master/examples/command)
|
2015-09-24 01:23:26 +03:00
|
|
|
* [Client and server example](https://github.com/gorilla/websocket/tree/master/examples/echo)
|
2014-03-21 00:26:28 +04:00
|
|
|
* [File watch example](https://github.com/gorilla/websocket/tree/master/examples/filewatch)
|
2023-08-17 18:25:09 +03:00
|
|
|
* [Write buffer pool example](https://github.com/gorilla/websocket/tree/master/examples/bufferpool)
|
2013-10-16 20:41:47 +04:00
|
|
|
|
2013-10-29 17:29:20 +04:00
|
|
|
### Status
|
2013-10-16 20:41:47 +04:00
|
|
|
|
2013-10-29 17:29:20 +04:00
|
|
|
The Gorilla WebSocket package provides a complete and tested implementation of
|
|
|
|
the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol. The
|
2014-04-19 18:16:39 +04:00
|
|
|
package API is stable.
|
2013-10-16 20:41:47 +04:00
|
|
|
|
2013-10-29 17:29:20 +04:00
|
|
|
### Installation
|
2013-10-16 20:41:47 +04:00
|
|
|
|
|
|
|
go get github.com/gorilla/websocket
|
|
|
|
|
2013-10-29 17:29:20 +04:00
|
|
|
### Protocol Compliance
|
|
|
|
|
2014-04-21 08:14:06 +04:00
|
|
|
The Gorilla WebSocket package passes the server tests in the [Autobahn Test
|
2018-12-06 10:02:39 +03:00
|
|
|
Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn
|
2013-10-29 17:29:20 +04:00
|
|
|
subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn).
|