Sockette
JSON →Sockette is a tiny (367 bytes) WebSocket wrapper with automatic reconnection, written by lukeed. Current stable version is 2.0.6. It provides a simple API to manage WebSocket connections, including automatic reconnection with configurable timeout and max attempts. Unlike raw WebSocket or heavier libraries like Socket.IO, Sockette is minimal and does not include fallback transports or extra features. It is ESM-only since v2 and includes TypeScript definitions. The package has low release cadence (last release 2020) and is considered stable and feature-complete.
Resources
packagesockette ↗