WebSocketClient 属性 |
WebSocketClient 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| AutoDecompress |
获取或设置数据自动解压缩功能,默认开启自动解压缩功能,如果需要自己手动解压缩数据的话,请设置为 false。 Get or set the automatic data decompression function. By default, the automatic decompression function is enabled. If you need to manually decompress the data, please set it to false. | |
| ConnectTimeOut |
获取或设置当前客户端的连接超时时间,默认10,000毫秒,单位ms Gets or sets the connection timeout of the current client. The default is 10,000 milliseconds. The unit is ms. | |
| GetCarryHostAndPort |
获取或设置连接时候的 GET 命令后面是否协议Host及端口号信息,默认为 False,不携带。 Obtain or set the protocol host and port number information after the GET command when connecting, which is False by default and does not carry it. | |
| IpAddress |
Mqtt服务器的ip地址 IP address of Mqtt server | |
| IsClosed |
获取当前的客户端状态是否关闭了连接,当自己手动处理网络异常事件的时候,在重连之前就需要判断是否关闭了连接。 Obtain whether the current client status has closed the connection. When manually handling network abnormal events, you need to determine whether the connection is closed before reconnecting. | |
| LogNet | ||
| Port |
端口号。默认1883 The port number. Default 1883 | |
| SupportDeflate |
获取或设置是否支持数据压缩功能,默认支持压缩功能,如果服务器不支持压缩功能,请设置为 false。 Get or set whether data compression function is supported. By default, compression function is supported. If the server does not support compression function, please set it to false. |