function connect
Usage in Deno
```typescript import { connect } from "node:node__net.d.ts"; ```
connect(options: NetConnectOpts,connectionListener?: () => void,): Socket
Aliases to [createConnection](../.././node__net.d.ts/~/createConnection).
Possible signatures:
* [connect](../.././node__net.d.ts/~/connect)
* [connect](../.././node__net.d.ts/~/connect) for `IPC` connections.
* [connect](../.././node__net.d.ts/~/connect) for TCP connections.
options: NetConnectOpts
connect(port: number,host?: string,connectionListener?: () => void,): Socket