Skip to content

Type Alias: ConnectionFactory ​

ts
type ConnectionFactory = (signal) => Promise<Connection>;

Defined in: netconf/src/transport/types.ts:57

Opens a connection. connect() passes a signal that aborts on its connect timeout or the caller's signal; the factory must give up promptly when it does.

Parameters ​

signal ​

AbortSignal

Returns ​

Promise<Connection>

Released under the MIT Licence.