Constructors

Methods

  • Helper method to iterate through a list of server addresses and try to execute a method on each of them. If the method throws a configurable error (or EHOSTUNREACH), the server address list is updated (to also add later discovered addresses or devices) and then next server address is tried.The result of the first successful method call is returned. The logic makes sure to only try each unique address (IP/port) once.

    Type Parameters

    Parameters

    Returns Promise<{
        result: T;
        resultAddress: AddressTypeFromDevice<DD>;
        resultDevice?: DD;
    }>