# gorilla/websocket

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

Repository: https://github.com/gorilla/websocket
Canonical: https://ross.abutalabs.com/products/websocket
Homepage: https://gorilla.github.io
Language: Go
License: BSD-2-Clause
License Family: permissive
Topics: go, websocket, golang, gorilla, gorilla-web-toolkit, websockets
Last push: 2025-03-19T13:29:08+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 12, release rhythm 8, longevity 100
- inputs: {"age_days": 4704, "days_push": 532, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 24858, forks 3587 (observed 2026-08-28T04:11:37.678533+00:00)

## What it is
gorilla/websocket is a fast, well-tested Go implementation of the WebSocket protocol (RFC 6455) for both clients and servers. It is part of the Gorilla web toolkit and has a stable, widely adopted API.

## Use cases
- add real-time websocket support to a Go http server
- build a chat application in Go
- connect to a websocket API from a Go client
- stream live updates to browsers
- implement a file watch push service over websockets

## When to choose
- you need a mature, protocol-compliant websocket library in Go
- you want a stable API with wide community adoption
- you need both client and server websocket support

## When to avoid
- you are not using Go
- you need higher-level abstractions like pub/sub or rooms built in

## Facets
- artifact type: library
- maturity: stable
- function: websocket, http-server, http-client
- domain: web-development, apis
- platform: go, cross-platform
- tags: gorilla, rfc6455, real-time-communication, real-time

## Member repositories
- gorilla/websocket (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:37.678533+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:08.990154+00:00, confidence not recorded.
  - readme: https://github.com/gorilla/websocket (fetched 2026-08-28T04:11:37.678533+00:00, sha f57d716e75a0)
  - homepage: https://gorilla.github.io (fetched 2026-08-29T07:53:14.151288+00:00, sha aa93940b2bb1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
