ltws
JSON →ltws is a lightweight WebSocket library that provides automatic reconnection and promise-based async connection. It wraps the native WebSocket API and adds event-driven communication, automatic ping/pong keep-alive, and customizable retry logic. Version 1.0.9 is stable. It offers a simple API with connect, send, sendJson, and event listeners for connect, disconnect, message, json, and errors. Key differentiators: built-in reconnection with configurable delays and retries, support for both callback and async/await patterns, and TypeScript-like type definitions.
Traffic · last 30 days stale · no recent hits
total hits 8
actors 2 distinct systems
last hit 16d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇪🇸 Spain