Skip to content

ConnectTarget

ConnectTarget = object

Defined in: packages/net-core/src/connection.ts:84

What a Connector should connect to.

readonly optional alpnProtocols?: readonly string[]

Defined in: packages/net-core/src/connection.ts:96

Application protocols to offer through ALPN, in preference order. Ignored on a cleartext connection.


readonly host: string

Defined in: packages/net-core/src/connection.ts:86

Host name or numeric address.


readonly port: number

Defined in: packages/net-core/src/connection.ts:87


readonly secure: boolean

Defined in: packages/net-core/src/connection.ts:90

Whether to protect the connection with TLS.