fetcher/irc

Description:
  • Fetch proofs using IRC

Source:

Fetch proofs using IRC

Example

import { fetcher } from 'doipjs';
const data = await fetcher.irc.fn({ nick: 'alice', domain: 'domain.example' });

Members

(static, constant) timeout :number

Description:
  • Default timeout after which the fetch is aborted

Source:
Default Value:
  • 20000

Default timeout after which the fetch is aborted

Type:
  • number

Methods

(static) fn(data, optsopt) → {Promise.<Array.<string>>}

Description:
  • Execute a fetch request

Source:
Parameters:
Name Type Attributes Description
data object

Data used in the request

Properties
Name Type Attributes Description
nick string

The nick of the targeted account

domain string

The domain on which the targeted account is registered

fetcherTimeout number <optional>

Optional timeout for the fetcher

opts module:types~VerificationConfig <optional>

Options used to enable the request

Returns:

The fetched proofs from an IRC account

Type
Promise.<Array.<string>>