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 |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |