EasyClientConfig class
客户端配置
- Inheritance
-
- Object
- EasyConfig
- EasyClientConfig
Constructors
- EasyClientConfig({EasyLogHandler? logger, EasyLogLevel? logLevel, String? logTag, String? logFilePath, int? logFileBackup, int? logFileMaxBytes, required String host, required int port, String? pwd, bool binary = false, int timeout = 10 * 1000, int heartick = 60, int conntick = 6, bool sslEnable = false})
Properties
- binary → bool
-
是否用二进制传输
final
- conntick → int
-
断线重连的间隔(秒)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heartick → int
-
发送心跳包的间隔(秒)
final
- host → String
-
服务器域名
final
- httpUrl → String
-
http请求地址
no setter
- logFileBackup → int?
-
日志文件保存数量
finalinherited
- logFileMaxBytes → int?
-
日志文件每份大小(字节)
finalinherited
- logFilePath → String?
-
日志输出文件路径
finalinherited
- logger → EasyLogHandler?
-
日志处理方法
finalinherited
- logLevel → EasyLogLevel?
-
日志级别
finalinherited
- logTag → String?
-
日志标签
finalinherited
- port → int
-
服务器端口号
final
- pwd → String?
-
数据加解密密码
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sslEnable → bool
-
是否启用ssl证书模式
final
- timeout → int
-
请求超时时间(毫秒)
final
- websocketUrl → String
-
websocket连接地址
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited