websocket-ts

JSON →
library 2.3.0 ·javascript
verified Jun 7, 2026

A lightweight, standalone WebSocket client library for browsers written in TypeScript, offering optional auto-reconnect and message buffering. Current stable version is 2.3.0, with frequent updates. Key differentiators: zero dependencies, 2.5 kB min+gzip, uses native WebSocket API, provides a builder pattern for easy configuration, and supports both CommonJS and ES modules. It is well-tested with high coverage and includes comprehensive API documentation.