gorilla /websocket

Package gorilla/websocket is a fast, well-tested and widely used WebSocket implementation for Go.

★ 24,882⑂ 3,582👁 368⑃ 356● 667▤ 11
GoBSD-2-ClauseCreated 2013-10-16gorilla.github.io
TA的项目
下载:v1.5.3v1.5.3 ↓1.5.32024-06-14
-1
日增长
-3
周增长
+8
月增长
24,882
stars
3,582
forks
368
watchers
356
prs
667
issues
11
releases

README

Gorilla WebSocket




Gorilla WebSocket is a Go implementation of the
WebSocket protocol.


 Documentation

 API Reference
 Chat example
 Command example
 Client and server example
 File watch example

 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.

Top issues

Discussions

Latest release

v1.5.3 v1.5.3 2024-06-14
Important change
This reverts the websockets package back to https://github.com/gorilla/websocket/commit/931041c5ee6de24fe9cba1aa16f1a0b910284d6d

 What's Changed
 Fixes subprotocol selection (aling with rfc6455) by @KSDaemon in https://github.com/gorilla/websocket/pull/823
 Update README.md, replace master to main by @mstmdev in https://github.com/gorilla/websocket/pull/862
 Use status code constant by @mstmdev in https://github.com/gorilla/websocket/pull/864
 conn.go: default close handler should not return ErrCloseSent. by @pnx in https://github.com/gorilla/websocket/pull/865
 fix: 

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON