Skip to content

Function: port()

port(configured, input, fallback, options?): number

Resolve a TCP port between 1 and MAX_TCP_PORT. Invalid configured or sourced values fall back to the caller’s default, which may be a sentinel such as 0 when the caller uses one.

unknown

ConfigKey

number

ConfigOptions

number