
One API surface for everyday networking in Unity: HTTP, WebSocket, GraphQL, caching, resumable downloads, and WebGL file system—ready to ship and easy to integrate.OverviewNetWeave is a networking toolkit for Unity that provides robust HTTP, WebSocket, and GraphQL clients, built‑in caching, background downloads, and a WebGL‑friendly file system layer. It ships with an in‑Editor local test server and a demo UI for fast iteration and verification—without leaving the Editor.Key Features- HTTP Client- GET/POST/custom headers; JSON/form/text- Cache validation (ETag / Last‑Modified), 304 support- Cache strategies (CacheFirst / NetworkFirst / TTL)- Timeout, cancellation, retries with backoff- WebSocket Client- Auto‑reconnect (exponential backoff), heartbeat (ping/pong)- Text/binary, subprotocols, events (OnOpen/OnMessage/OnClose/OnError)- Main‑thread dispatch tailored for Unity- GraphQL Client- Standard HTTP GraphQL (POST), queries/mutations- Optional caching, simple API- Caching- TTL, ETag/Last‑Modified, disk/memory transparent reads- Works seamlessly with WebGL file system- Background Download- Chunked concurrent download, resume with Range/206- MD5/SHA256 validation, progress callbacks, rate limit- WebGL File System- Bridges caching and downloads to browser storage with a unified API- Dev Utilities (Editor)- Test Server window: one‑click local HTTP + WebSocket server- Demo UI (EditorServerPlayModeDemoUI): end‑to‑end showcase with logs- Sample scenes and source includedUse Cases- Live games/tools needing REST APIs + real‑time push- Content retrieval with offline caching- Large file delivery with resume and integrity checks- WebGL builds requiring persistent storage & networkingPlatforms & Compatibility- Unity 2019.4+ (2020+ recommended)- Api Compatibility Level: .NET 4.x- Editor, Windows / macOS / Linux, iOS / Android, WebGL- Notes:- Sample WebSocket is plaintext ws; use wss with proper certificates/HTTPS if required- WebGL follows browser limitations (CORS, storage, payload sizes)