connectSync method Null safety
- dynamic host,
- int port
Creates a new socket connection and returns a RawSynchronousSocket.
host can either be a String or an InternetAddress.
host is a String, connectSync will perform a
InternetAddress.lookup and try all returned InternetAddresses,
Unless a connection was established,
the error from the first failing connection is returned.
external static RawSynchronousSocket connectSync(host, int port);