{"id":30203864,"url":"https://github.com/betacatpro/websocket-pro-client","last_synced_at":"2025-08-13T12:11:28.848Z","repository":{"id":309042631,"uuid":"1034979976","full_name":"BetaCatPro/websocket-pro-client","owner":"BetaCatPro","description":"High-performance WebSocket client with auto-reconnect, heartbeat and priority messaging","archived":false,"fork":false,"pushed_at":"2025-08-09T13:40:10.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T14:13:43.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BetaCatPro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-09T11:54:04.000Z","updated_at":"2025-08-09T12:53:47.000Z","dependencies_parsed_at":"2025-08-09T14:13:45.164Z","dependency_job_id":"40aff1d1-5ef2-4025-be50-cd2abc9582e6","html_url":"https://github.com/BetaCatPro/websocket-pro-client","commit_stats":null,"previous_names":["betacatpro/websocket-pro-client"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BetaCatPro/websocket-pro-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaCatPro%2Fwebsocket-pro-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaCatPro%2Fwebsocket-pro-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaCatPro%2Fwebsocket-pro-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaCatPro%2Fwebsocket-pro-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BetaCatPro","download_url":"https://codeload.github.com/BetaCatPro/websocket-pro-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaCatPro%2Fwebsocket-pro-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270236609,"owners_count":24550233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-13T12:11:26.478Z","updated_at":"2025-08-13T12:11:28.788Z","avatar_url":"https://github.com/BetaCatPro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebSocket Pro Client\n\n[![npm version](https://img.shields.io/npm/v/websocket-pro-client)](https://www.npmjs.com/package/websocket-pro-client)\n[![test coverage](https://img.shields.io/badge/coverage-100%25-success)](https://github.com/BetaCatPro/websocket-pro-client/actions)\n\n高性能 WebSocket 客户端，专为现代 Web 应用设计。\n\n## 特性\n\n- 🚀 自动重连 + 智能退避算法\n- 💓 可配置心跳检测\n- 🎯 消息优先级调度\n- 📦 多连接池管理\n- 🔍 完整的 TypeScript 支持\n\n## 安装\n\n```bash\nnpm install websocket-pro-client\n# 或\nyarn add websocket-pro-client\n```\n\n## 快速开始\n\n```typescript\nimport { createWebSocketManager } from \"websocket-pro-client\";\n\nconst manager = createWebSocketManager({\n  maxReconnectAttempts: 5,\n});\n\nconst client = manager.connect(\"wss://api.example.com\");\n\nclient.on(\"message\", (data) =\u003e {\n  console.log(\"Received:\", data);\n});\n\nclient.send({ action: \"subscribe\" });\n```\n\n## 开发调试\n\n```bash\n# 启动测试\nnpm test\n\n# 构建库\nnpm run build\n\n# 运行demo\nnpm run demo\n```\n\n## 贡献指南\n\n1. Fork 仓库\n2. 创建分支 (`git checkout -b dev/feature/fix-xxx`)\n3. 提交更改 (`git commit -am 'feat/fix xxx'`)\n4. 推送到分支 (`git push origin dev/feature/fix-xxx`)\n5. 创建 Pull Request\n\n## 后续工作\n\n1. 自定义心跳包\n2. 添加更多配置项\n3. 添加完整测试用例(单元测试/集成测试)\n4. 完善说明 API 文档\n\n## 许可证\n\nMIT © 2023 BetaCatPro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetacatpro%2Fwebsocket-pro-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetacatpro%2Fwebsocket-pro-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetacatpro%2Fwebsocket-pro-client/lists"}