getConnect method
Implementation
Map getConnect(String? nonce, Uri serverURI, Map<String, dynamic> opts) {
final conn = auth!(nonce);
conn.addAll({
'protocol': 1,
'version': VERSION,
'lang': '$LANG.${serverURI.scheme}',
'verbose': opts['verbose'] ?? false,
'pedantic': opts['pedantic'] ?? false,
'no_responders': opts['noResponders'] ?? true,
'headers': opts['headers'] ?? true
});
if (!opts['noEcho']) conn['echo'] = !opts['noEcho'];
if (opts['name'] != null) conn['name'] = opts['name'];
if (opts['tls'] != null) conn['tls_required'] = true;
return conn;
}