tcpConnect method

Future tcpConnect(
  1. String host, {
  2. int port = 4222,
  3. ConnectOption? connectOption,
  4. int timeout = 5,
  5. bool retry = true,
  6. int retryInterval = 10,
})

discontinue tcpConnect. use connect(uri) instead Backward compatible with 0.2.x version

Implementation

Future tcpConnect(String host,
    {int port = 4222,
    ConnectOption? connectOption,
    int timeout = 5,
    bool retry = true,
    int retryInterval = 10}) {
  return connect(
    Uri(scheme: 'nats', host: host, port: port),
    retry: retry,
    retryInterval: retryInterval,
    timeout: timeout,
    connectOption: connectOption,
  );
}