ts-lambda-api - v2.5.2
    Preparing search index...

    Class SocketAddress

    v15.14.0, v14.18.0

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    address: string

    Either 'ipv4' or 'ipv6'.

    v15.14.0, v14.18.0

    family: IPVersion

    Either 'ipv4' or 'ipv6'.

    v15.14.0, v14.18.0

    flowlabel: number

    v15.14.0, v14.18.0

    port: number

    v15.14.0, v14.18.0

    Methods

    • Parameters

      • input: string

        An input string containing an IP address and optional port, e.g. 123.1.2.3:1234 or [1::1]:1234.

      Returns SocketAddress

      Returns a SocketAddress if parsing was successful. Otherwise returns undefined.

      v22.13.0