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 = 30 * 1000, int heartick = 60, int conntick = 6, bool sslEnable = false})
- EasyClientConfig.fromSourceAndArgs({required EasyClientConfig source, EasyLogHandler? logger, EasyLogLevel? logLevel, String? logTag, String? logFilePath, int? logFileBackup, int? logFileMaxBytes, String? host, int? port, String? pwd, bool? binary, int? timeout, int? heartick, int? conntick, bool? sslEnable})
-
factory
Properties
- binary → bool
-
http、websocket是否用二进制传输
final
- conntick → int
-
websocket断线重连的间隔(秒)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heartick → int
-
websocket发送心跳包的间隔(秒),建议与服务端EasyServerConfig.heart保持一致
final
- host → String
-
http、websocket服务器域名
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
-
http、websocket服务器端口号
final
- pwd → String?
-
http、websocket数据加解密密码
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sslEnable → bool
-
http、websocket是否启用ssl证书模式
final
- timeout → int
-
websocket请求超时时间(毫秒)
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