NetWeave Kit – HTTP/WebSocket/GraphQL
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.
by chen_lun_fu
Price History +
Overview
NetWeave 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 included
Use 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 & networking