WebSocketServerPublishClientPayloadAsync 方法 (String, String, Boolean) |
向订阅了topic主题的客户端发送消息
Send messages to clients subscribed to topic
命名空间:
HslCommunication.WebSocket
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task PublishClientPayloadAsync(
string topic,
string payload,
bool retain
)
Public Function PublishClientPayloadAsync (
topic As String,
payload As String,
retain As Boolean
) As Task
public:
Task^ PublishClientPayloadAsync(
String^ topic,
String^ payload,
bool retain
)
member PublishClientPayloadAsync :
topic : string *
payload : string *
retain : bool -> Task
参数
- topic
- 类型:SystemString
主题 - payload
- 类型:SystemString
消息内容 - retain
- 类型:SystemBoolean
指定当前的主题是否驻留
返回值
类型:
Task[缺少 "M:HslCommunication.WebSocket.WebSocketServer.PublishClientPayloadAsync(System.String,System.String,System.Boolean)" 的 <returns> 文档]
参见