点击或拖拽改变大小

WebSocketClient 方法

WebSocketClient 类型公开以下成员。

方法
  名称说明
公共方法ConnectClose
关闭与Websocket服务器的连接。
Close the connection to the Mqtt server.
公共方法ConnectCloseAsync
关闭与Websocket服务器的连接。
Close the connection to the Mqtt server.
公共方法ConnectServer
连接服务器,实例化客户端之后,至少要调用成功一次,如果返回失败,那些请过一段时间后重新调用本方法连接。
After connecting to the server, the client must be called at least once after instantiating the client. If the return fails, please call this method to connect again after a period of time.
公共方法ConnectServer(String)
连接服务器,实例化客户端之后,至少要调用成功一次,如果返回失败,那些请过一段时间后重新调用本方法连接。
After connecting to the server, the client must be called at least once after instantiating the client. If the return fails, please call this method to connect again after a period of time.
公共方法ConnectServerAsync
连接服务器,实例化客户端之后,至少要调用成功一次,如果返回失败,那些请过一段时间后重新调用本方法连接。
After connecting to the server, the client must be called at least once after instantiating the client. If the return fails, please call this method to connect again after a period of time.
公共方法ConnectServerAsync(String)
连接服务器,实例化客户端之后,至少要调用成功一次,如果返回失败,那些请过一段时间后重新调用本方法连接。
After connecting to the server, the client must be called at least once after instantiating the client. If the return fails, please call this method to connect again after a period of time.
公共方法Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
受保护的方法Dispose(Boolean)
释放当前的对象
公共方法Equals
Determines whether the specified object is equal to the current object.
(继承自 Object。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法SendServer(String)
发送数据到WebSocket的服务器
Send data to WebSocket server
公共方法SendServer(Boolean, String)
发送数据到WebSocket的服务器,可以指定是否进行掩码操作
Send data to the WebSocket server, you can specify whether to perform a mask operation
公共方法SendServer(Int32, Boolean, Byte)
发送自定义的命令到WebSocket服务器,可以指定操作码,是否掩码操作,原始字节数据
Send custom commands to the WebSocket server, you can specify the operation code, whether to mask operation, raw byte data
公共方法ToString
Returns a string that represents the current object.
(重写 ObjectToString.)
公共方法UseSSL(X509Certificate)
使用一个证书来初始化 SSL/TLS 通信
Use a certificate to initiate SSL/TLS communication
公共方法UseSSL(String)
使用一个证书路径来初始化 SSL/TLS 通信
Use a certificate path to initialize SSL/TLS communication
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见