Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/addressUtils"

Index

Object literals

Object literals

Const addressUtils

addressUtils: object

Helper methods for interacting with the Address type.

areEqual

fromSocket

  • fromSocket(socket: Socket): Address

fromString

  • fromString(addressString: string, port?: number): Address
  • Create an Address from a string.

    Parameters

    • addressString: string

      a string in the "{host}:{port}" format

    • Default value port: number = 8885

      a port number to use if no port is specified in the string, defaults to 8885

    Returns Address

sortByLastConnected

  • sortByLastConnected(addresses: Address[]): object[]

toString

  • toString(address: Address): string

Generated using TypeDoc