-
Notifications
You must be signed in to change notification settings - Fork 58
M_QCloud_WeApp_SDK_Tunnel_TunnelRoom_Broadcast
techird edited this page Oct 28, 2016
·
4 revisions
发送消息到房间里的所有信道
命名空间:QCloud.WeApp.SDK.Tunnel
**程序集:**QCloud.WeApp.SDK (in QCloud.WeApp.SDK.dll) Version: 1.0
C#
public EmitResult Broadcast(
string messageType,
Object messageContent
)
- messageType
- 类型:System.String
消息类型 - messageContent
- 类型:System.Object
消息内容,可以为任意类型,不过对象必须可以被序列化
类型:EmitResult
返回信道发送结果,可能包含无效信道列表
异常 | 条件 |
---|---|
EmitException | 网络不可用或信道服务器不可用 |