From 9131c783eda0d61aef9031594a403377c4722d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=98=E8=85=BE=E7=AC=94=E8=AE=B0?= Date: Tue, 27 Oct 2020 20:38:27 +0800 Subject: [PATCH] Update websocket.md --- docs/api/request/websocket.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/request/websocket.md b/docs/api/request/websocket.md index 4990173b7..5a057cb90 100644 --- a/docs/api/request/websocket.md +++ b/docs/api/request/websocket.md @@ -8,9 +8,9 @@ |参数名|类型|必填|说明|平台差异说明| |:-|:-|:-|:-|:-| |url|String|是|服务器接口地址|小程序中必须是 `wss://` 协议| -|header|Object|否|HTTP Header , header 中不能设置 Referer|小程序| -|method|String|否|默认是GET,有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT|微信小程序| -|protocols|Array<String>|否|子协议数组|H5、微信小程序、百度小程序、字节跳动小程序| +|header|Object|否|HTTP Header , header 中不能设置 Referer|仅小程序支持| +|method|String|否|默认是GET,有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT|仅微信小程序支持| +|protocols|Array<String>|否|子协议数组|App、H5、微信小程序、百度小程序、字节跳动小程序| |success|Function|否|接口调用成功的回调函数|| |fail|Function|否|接口调用失败的回调函数|| |complete|Function|否|接口调用结束的回调函数(调用成功、失败都会执行)| | -- GitLab