connectString method
Connection methods / Connect using a host string of the form http://thehost.com:1234, port is optional. Scheme must be http or ws
Implementation
//// Connect using a host string of the form http://thehost.com:1234,
/// port is optional. Scheme must be http or ws
void connectString(String hostname) {
if (hostname == null) {
throw ArgumentError.notNull("Moac::connectString - hostname");
}
final Uri uri = Uri.parse(hostname);
_validateUri(uri);
}