WebSocketServerPublishClientPayloadAsync 方法 (String, String) |
向订阅了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
)
Public Function PublishClientPayloadAsync (
topic As String,
payload As String
) As Task
public:
Task^ PublishClientPayloadAsync(
String^ topic,
String^ payload
)
member PublishClientPayloadAsync :
topic : string *
payload : string -> Task
参数
- topic
- 类型:SystemString
主题 - payload
- 类型:SystemString
消息内容
返回值
类型:
Task[缺少 "M:HslCommunication.WebSocket.WebSocketServer.PublishClientPayloadAsync(System.String,System.String)" 的 <returns> 文档]
参见