小游戏
小程序
小游戏
小商店
公众号
智能对话
开放平台
企业微信
微信支付
腾讯小微
开发
介绍
设计
运营
数据
社区
中文
EN
取消
查看更多
在游戏下暂无结果,查看其它业务相关内容 >
指南
框架
API
服务端
工具
云开发
云测试
开发
开发
介绍
设计
运营
数据
社区
中文
EN
中文
EN
取消
API
#
SocketTask.onMessage(function callback)
相关文档:
网络使用说明
、
局域网通信
#
功能描述
监听 WebSocket 接受到服务器的消息事件
#
参数
#
function callback
WebSocket 接受到服务器的消息事件的回调函数
#
参数
#
Object res
属性
类型
说明
data
string/ArrayBuffer
服务器返回的消息
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation.
Tap to report.
复制
问题反馈
在线咨询
反馈