ConnectOption class

connection option to send to server

Constructors

ConnectOption({bool? verbose = false, bool? pedantic, String? authToken, String? jwt, String? nkey, String? user, String? pass, bool? tlsRequired, String? name, String? lang = 'dart', String? version = '0.6.0', bool? headers = true, int? protocol = 1})
construcure
ConnectOption.fromJson(Map<String, dynamic> json)
constructure from json

Properties

authToken String?
Auehtnticatio Token
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers bool?
headers
getter/setter pair
jwt String?
JWT
getter/setter pair
lang String?
lang??
getter/setter pair
name String?
server name
getter/setter pair
nkey String?
NKEY
getter/setter pair
pass String?
password
getter/setter pair
pedantic bool?
getter/setter pair
protocol int?
protocol
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sig String?
signature jwt.sig = sign(hash(jwt.header + jwt.body), private-key(jwt.issuer))(jwt.issuer is part of jwt.body)
getter/setter pair
tlsRequired bool?
TLS require or not //not implement yet
getter/setter pair
user String?
username
getter/setter pair
verbose bool?
NATS server send +OK or not (default nats server is turn on) this client will auto tuen off as after connect
getter/setter pair
version String?
sever version
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
export to json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited