小程序插件下websocket连接如何收发消息?

发布于 8 年前作者 nqiu3820 次浏览最后编辑 8 年前来自 ask

https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/api-limit.html

小程序插件的websocket接口只有wx.connectSocket可以使用吗?调用其他接口如:onSocketMessage、onSocketError、onSocketOpen、sendSocketMessage都会报错:wx.sendSocketMessage is not a function。

请问:插件下websocket连接如何收发消息?

0 回复
暂无回复