Function: connect()
connect(...
args):Promise<Connection>
Defined in: src/connection/connection-implementation.ts:178
Creates a ConnectionImplementation and establishes the connection in one step. Equivalent to new ConnectionImplementation(...args).connect().
Parameters
| Parameter | Type | Description |
|---|---|---|
...args | [Connect, RetryStrategy, unknown] | Same arguments as the ConnectionImplementation constructor. |
Returns
Promise<Connection>