# sta/websocket-sharp

A C# implementation of the WebSocket protocol client and server

Repository: https://github.com/sta/websocket-sharp
Canonical: https://ross.abutalabs.com/products/websocket-sharp
Homepage: http://sta.github.io/websocket-sharp
Language: C#
License: MIT
License Family: permissive
Last push: 2026-08-03T07:34:19+00:00

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

## Adoption (not part of the score)
Stars 6075, forks 1682 (observed 2026-08-28T04:09:34.803015+00:00)

## What it is
websocket-sharp is a C# library implementing the WebSocket protocol (RFC 6455) for both client and server, with support for per-message compression, secure connections, HTTP authentication, and proxy connections. It ships as a single assembly targeting .NET Framework 3.5+ and Mono, and is commonly used in Unity projects.

## Use cases
- add websocket client to a C# application
- build a websocket server in .NET
- use websockets in Unity games
- connect through an HTTP proxy with websockets
- secure websocket connections with TLS in C#
- websocket client for Mono or .NET Framework 3.5

## When to choose
- you need a pure C# websocket client or server without native dependencies
- you are building a Unity game that needs websocket networking
- you must target older .NET Framework versions or Mono

## When to avoid
- you are on modern .NET and can use built-in System.Net.WebSockets or ASP.NET Core websockets
- you need a fully stable NuGet release (only prerelease packages are published)
- you need high-performance, scalable websocket server infrastructure

## Facets
- artifact type: library
- maturity: maintenance
- function: websocket, http-server, http-client
- domain: web-development, networking, cross-platform
- platform: dotnet, cross-platform, game-engine
- tags: c-sharp, rfc6455, unity, websocket-client, websocket-server, mono, real-time

## Member repositories
- sta/websocket-sharp (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.803015+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-29T17:48:21.988533+00:00, confidence not recorded.
  - readme: https://github.com/sta/websocket-sharp (fetched 2026-08-28T04:09:34.803015+00:00, sha 38cc06144981)
  - homepage: http://sta.github.io/websocket-sharp (fetched 2026-08-29T08:45:00.589005+00:00, sha 8a0fc904679f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
