https://github.com/fasthttp/websocket
WebSocket implementation for fasthttp.
https://github.com/fasthttp/websocket
fasthttp go golang websocket
Last synced: 20 days ago
JSON representation
WebSocket implementation for fasthttp.
- Host: GitHub
- URL: https://github.com/fasthttp/websocket
- Owner: fasthttp
- License: bsd-2-clause
- Created: 2018-08-26T15:08:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T23:01:58.000Z (about 1 year ago)
- Last Synced: 2025-01-01T23:28:31.703Z (about 1 year ago)
- Topics: fasthttp, go, golang, websocket
- Language: Go
- Homepage:
- Size: 673 KB
- Stars: 544
- Watchers: 15
- Forks: 56
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# Fasthttp WebSocket
[](https://github.com/fasthttp/websocket/actions?workflow=test)
[](https://goreportcard.com/report/github.com/fasthttp/websocket)
[](https://pkg.go.dev/github.com/fasthttp/websocket)
[](https://github.com/fasthttp/websocket/releases)
WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) for [fasthttp](https://github.com/valyala/fasthttp).

_This project is a fork of the latest version of [gorilla/websocket](https://github.com/gorilla/websocket) that continues its development independently._
### Documentation
* [API Reference](https://pkg.go.dev/github.com/fasthttp/websocket?tab=doc)
* [Chat example](_examples/chat)
* [Command example](_examples/command)
* [Client and server example](_examples/echo)
* [File watch example](_examples/filewatch)
### Status
The 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/fasthttp/websocket
```
But beware that this will fetch the **latest commit of the master branch** which is never purposely broken, but usually not considered stable anyway.
### Protocol Compliance
The WebSocket package passes the server tests in the [Autobahn Test
Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [_examples/autobahn
subdirectory](_examples/autobahn).