extra-websocket

JSON →
library 0.5.3 ·javascript
verified Jun 7, 2026

A wrapper around the ws WebSocket library providing an event emitter interface, automatic reconnection with optional exponential backoff and jitter, heartbeat support, and promise-based connect/close. Currently at version 0.5.3, requires Node.js >=22 and peer dependency ws@^8.7.0. Ships TypeScript type definitions. Differentiators include a clean Emitter-based API, auto-reconnect strategies, and built-in ping/pong heartbeat.