{"id":21713888,"url":"https://github.com/cytle/mp-websocket","last_synced_at":"2025-04-12T19:04:44.215Z","repository":{"id":48244095,"uuid":"114833914","full_name":"cytle/mp-websocket","owner":"cytle","description":"小程序websocket","archived":false,"fork":false,"pushed_at":"2022-12-07T01:08:02.000Z","size":167,"stargazers_count":14,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T11:42:44.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cytle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-20T02:33:19.000Z","updated_at":"2024-04-09T18:25:55.000Z","dependencies_parsed_at":"2023-01-24T07:01:16.817Z","dependency_job_id":null,"html_url":"https://github.com/cytle/mp-websocket","commit_stats":null,"previous_names":["cytle/wxapp-websocket"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fmp-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fmp-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fmp-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fmp-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cytle","download_url":"https://codeload.github.com/cytle/mp-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226420939,"owners_count":17622341,"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","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":"2024-11-26T00:28:26.779Z","updated_at":"2024-11-26T00:28:27.324Z","avatar_url":"https://github.com/cytle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mp-websocket\n\n小程序`websocket`实现\n\n## 说明\n\n### 1.  单连接和多连接\n\n\u003e 基础库 1.7.0 之前，一个微信小程序同时只能有一个 WebSocket 连接，如果当前已存在一个 WebSocket 连接，会自动关闭该连接，并重新创建一个 WebSocket 连接。基础库版本 1.7.0 及以后，支持存在多个 WebSokcet 连接，每次成功调用 wx.connectSocket 会返回一个新的 SocketTask。\n\u003e [小程序socket文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-socket.html)\n\n本项目两种模式都支持，不过在单连接版本下，只能连接一个。\n\n### 2. 支付宝和微信小程序\n\n本项目都支持\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcytle%2Fmp-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcytle%2Fmp-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcytle%2Fmp-websocket/lists"}