diff --git a/docs/api/request/websocket.md b/docs/api/request/websocket.md index dd50f5f0ac14c041244e66c743f8a54fd69dd813..533ae7dc220a6af9a4599df8c7bc002978191ab8 100644 --- a/docs/api/request/websocket.md +++ b/docs/api/request/websocket.md @@ -51,7 +51,11 @@ var socketTask = uni.connectSocket({ - 网络请求的 ``超时时间`` 可以统一在 ``manifest.json`` 中配置 [networkTimeout](/collocation/manifest?id=networktimeout)。 - App目前不支持 ``ArrayBuffer`` 类型的数据收发。可以使用 [plus-websocket](https://ext.dcloud.net.cn/plugin?id=647) 插件替代。 -- 自定义组件模式下所有 `vue` 页面只能使用一个 `websocket` 连接。可以使用 [plus-websocket](https://ext.dcloud.net.cn/plugin?id=647) 插件替代。 +- App平台自定义组件模式下,以及支付宝小程序下,所有 `vue` 页面只能使用一个 `websocket` 连接。App下可以使用 [plus-websocket](https://ext.dcloud.net.cn/plugin?id=647) 插件替代实现多链接。 +- 微信小程序平台1.7.0 及以上版本,最多可以同时存在5个WebSocket 连接。老版本只支持一个socket连接 +- 百度小程序平台自基础库版本 1.9.4 及以后支持多个socket连接。老版本只支持一个socket连接 +- QQ小程序平台最多支持同时存在5个socket链接 + ### uni.onSocketOpen(CALLBACK) 监听WebSocket连接打开事件。