# lxzan/gws

simple, fast, reliable websocket server & client, supports running over tcp/kcp/unix domain socket. keywords: ws, proxy, chat, go, golang...

Repository: https://github.com/lxzan/gws
Canonical: https://ross.abutalabs.com/products/gws
Homepage: https://pkg.go.dev/github.com/lxzan/gws
Language: Go
License: Apache-2.0
License Family: permissive
Topics: websocket, go-websocket, ws, go-ws, kcp, rfc7692, permessage-deflate, context-takeover
Last push: 2026-07-27T09:10:13+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 71, longevity 100
- inputs: {"age_days": 1455, "days_push": 37, "days_rel": 37, "gap_med": 106, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1796, forks 122 (observed 2026-08-28T04:05:37.549105+00:00)

## What it is
GWS is a high-performance, feature-complete WebSocket server and client library for Go, supporting TCP, KCP, and Unix domain socket transports. It offers a minimal event-driven API with RFC 6455/7692 compliance, permessage-deflate compression, and is validated by the Autobahn test suite.

## Use cases
- build a websocket server in go
- websocket client library for golang
- implement a chat or IM backend
- build a real-time push notification hub
- websocket reverse proxy or api gateway
- stream real-time data for online games
- compress websocket messages with permessage-deflate

## When to choose
- you need a fast, low-memory websocket implementation in Go for high-concurrency workloads
- you want an event-driven API that hides protocol details
- you need RFC 6455/7692 compliance verified by Autobahn tests
- you want transport flexibility over TCP, KCP, or Unix domain sockets

## When to avoid
- you need a browser-side JavaScript websocket library
- you prefer a batteries-included websocket framework with routing and middleware built in
- your project is not written in Go

## Facets
- artifact type: library
- maturity: stable
- function: websocket, http-server, http-client, networking, proxy
- domain: web-development, backend, networking, developer-tools
- platform: go, cross-platform, windows
- tags: rfc6455, rfc7692, permessage-deflate, kcp, unix-domain-socket, event-driven, high-concurrency, chat, im, push, real-time, linux, macos

## Member repositories
- lxzan/gws (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:37.549105+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-30T03:22:49.456959+00:00, confidence not recorded.
  - readme: https://github.com/lxzan/gws (fetched 2026-08-28T04:05:37.549105+00:00, sha d10544f32b58)
  - homepage: https://pkg.go.dev/github.com/lxzan/gws (fetched 2026-08-29T11:01:31.698641+00:00, sha a0b5924356fd)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T11:01:31.709083+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T11:01:31.711325+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
