WebSocketServerPublishClientPayload 方法 (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 void PublishClientPayload(
string topic,
string payload,
bool retain
)
Public Sub PublishClientPayload (
topic As String,
payload As String,
retain As Boolean
)
public:
void PublishClientPayload(
String^ topic,
String^ payload,
bool retain
)
member PublishClientPayload :
topic : string *
payload : string *
retain : bool -> unit
参数
- topic
- 类型:SystemString
主题 - payload
- 类型:SystemString
消息内容 - retain
- 类型:SystemBoolean
指定当前的主题是否驻留
参见