Sockette
JSON →Sockette is a tiny (367 bytes) WebSocket wrapper that automatically reconnects on connection loss. Current stable version is 2.0.7. Released on npm, it provides a minimal API for managing WebSocket connections with configurable timeout and max reconnection attempts. It supports event listeners for open, message, close, reconnect, and maximum attempts reached events. Unlike raw WebSocket, it allows reusing a single instance without redeclaring listeners. It ships TypeScript types and is compatible with both browser and Node.js (with WebSocket polyfill).
Traffic · last 30 days stale · no recent hits
total hits 10
actors 1 distinct systems
last hit 20d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇬🇧 United Kingdom
API endpoints
full doc /v1/registry/sockette-dynamic-url