From 25658e6134d26fb7ab03629f9090a545bc093b39 Mon Sep 17 00:00:00 2001 From: stwang <464905943@qq.com> Date: Mon, 26 Dec 2022 11:07:17 +0800 Subject: [PATCH] remove onSocketClose callback res --- docs/api/request/websocket.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/request/websocket.md b/docs/api/request/websocket.md index 33e4b2f16..188b16d1b 100644 --- a/docs/api/request/websocket.md +++ b/docs/api/request/websocket.md @@ -210,7 +210,7 @@ uni.onSocketOpen(function () { uni.closeSocket(); }); -uni.onSocketClose(function (res) { +uni.onSocketClose(function () { console.log('WebSocket 已关闭!'); }); ```