Skip to content

Interface: IInterfaceListenOptions ​

The options of IInterfaceListening.listenOnAll.

Properties ​

family? ​

optional family?: "IPv4" | "IPv6" | "both"

The families listened on.

Default ​

ts
'both'

port ​

port: number

The port; 0 lets the system choose one (for one interface only).


strict? ​

optional strict?: boolean

Refuse to listen where the connections reaching the addresses of the interface through another interface cannot be refused, and stop listening while they cannot. An implementation that never refuses them throws.

Default ​

ts
false

Released under the MIT License.