wscl

JSON →
library 2.3.2 ·javascript
verified Jun 7, 2026

Tiny WebSocket wrapper (~635 bytes brotlied) with auto-reconnect (exponential backoff) and message buffering. Version 2.3.2, stable. Smaller than alternatives like reconnecting-websocket. Ships TypeScript types. Features: on() returns unsubscribe, message callback receives data directly (not event), connect() returns Promise.