connectTcp
connectTcp(
target,signal?):Promise<TransportConnection>
Defined in: net-transport-node/src/connect-tcp.ts:68
Open a TCP connection, cleartext or TLS with Node’s default verification;
createTcpConnector() without options.
Parameters
Section titled “Parameters”target
Section titled “target”ConnectTarget
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<TransportConnection>
Throws
Section titled “Throws”When the connection is refused, the TLS handshake or verification
fails, or signal aborts first.