# endel/NativeWebSocket

🔌 WebSocket client for Unity/MonoGame/Godot Mono - with no external dependencies (WebGL, Native, Android, iOS, UWP)

Repository: https://github.com/endel/NativeWebSocket
Canonical: https://ross.abutalabs.com/products/nativewebsocket
Language: C#
License: NOASSERTION
License Family: other
Topics: websockets, dotnet, godot-mono, monogame, unity
Last push: 2026-08-07T02:22:02+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 96, release rhythm 96, longevity 100
- inputs: {"age_days": 2584, "days_push": 27, "days_rel": 27, "gap_med": 15, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1709, forks 204 (observed 2026-08-28T04:05:25.571220+00:00)

## What it is
NativeWebSocket is a dependency-free WebSocket client library for .NET that works in Unity, MonoGame, Godot (C#), and any other .NET project. It builds on the built-in System.Net.WebSockets API, adds WebGL/HTML5 support for Unity builds, and dispatches events back to the main thread via SynchronizationContext.

## Use cases
- add websocket support to a Unity game
- websocket client for Godot C# projects
- use WebSockets in Unity WebGL browser builds
- c# websocket library with no external DLLs
- receive websocket messages on the main thread in a game engine
- connect a MonoGame game to a websocket server
- real-time messaging over websockets on Android and iOS with .NET

## When to choose
- You need WebSockets in Unity, MonoGame, or Godot C# without external DLL dependencies
- You are targeting Unity WebGL builds where standard .NET websocket code needs conditional compilation
- You want websocket callbacks automatically marshaled to the engine's main thread
- You want a very small, simple client API (Connect, Send, SendText, Close) for game networking

## When to avoid
- You need a full game networking stack with reliability, channels, or transport beyond raw WebSocket frames
- You are building a plain server-side or desktop .NET app where System.Net.WebSockets or SignalR already suffices
- You require a clearly verified license, since the repository license is marked as unverified (NOASSERTION)

## Facets
- artifact type: library
- maturity: active
- function: websocket
- domain: networking, cross-platform
- platform: dotnet, game-engine, cross-platform, browser, windows
- tags: unity, monogame, godot, webgl, csharp, websocket-client, no-external-dependencies, main-thread-dispatching, real-time-messaging, game-development, android, ios

## Member repositories
- endel/NativeWebSocket (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.571220+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:36:58.080750+00:00, confidence not recorded.
  - readme: https://github.com/endel/NativeWebSocket (fetched 2026-08-28T04:05:25.571220+00:00, sha e5df815740f1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
