{"library":"ltws","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.9","tags":["javascript","ltws","websocket","websocket-manager","websocket-reconnect","websocket-async"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ltws","imports":["import ltws from 'ltws'","import ltws from 'ltws';\nconst ws = ltws.connect('ws://...');","import ltws from 'ltws';\nconst ws = ltws.createInstance();"]},{"cmd":"yarn add ltws","imports":[]},{"cmd":"pnpm add ltws","imports":[]}],"homepage":"https://github.com/ltmin/ltws#readme","github":"https://github.com/ltmin/ltws","docs":null,"changelog":null,"pypi":null,"npm":"ltws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}