Interface ListenOptions

Hierarchy

  • ListenOptions

Properties

backlog?: number
ipv6Only?: boolean

Disables dual stack mode.

reuseAddr?: boolean

Used on UDP only. Enable address reusing (when binding). What that means is that multiple threads or processes can bind to the same address without error (provided they all set the flag) but only the last one to bind will receive any traffic, in effect "stealing" the port from the previous listener.

Generated using TypeDoc