websocket-perfect

JSON →
library 1.1.3 ·javascript
verified Jun 7, 2026

An RxJS-based WebSocket wrapper for JavaScript/TypeScript that supports automatic reconnection and business subscription caching. At version 1.1.3, it provides observable-based WebSocket communication with hooks (beforeSend/afterSend), interceptors for message transformation, and configurable buffer/cache settings to resubscribe after reconnect. Key differentiators: integrates with RxJS 6+, allows per-message cache control via bufferWhen or _flush property, and offers simple send/close API. Stable release, low update cadence.