Skip to main content

Class: IotaHTTPTransport

Implements

Constructors

new IotaHTTPTransport()

new IotaHTTPTransport(options): IotaHTTPTransport

Parameters

options: IotaHTTPTransportOptions

Returns

IotaHTTPTransport

Methods

fetch()

fetch(input, init?): Promise<Response>

Parameters

input: RequestInfo

init?: RequestInit

Returns

Promise<Response>


request()

request<T>(input): Promise<T>

Type Parameters

T

Parameters

input: IotaTransportRequestOptions

Returns

Promise<T>

Implementation of

IotaTransport.request


subscribe()

subscribe<T>(input): Promise<() => Promise<boolean>>

Type Parameters

T

Parameters

input: IotaTransportSubscribeOptions<T>

Returns

Promise<() => Promise<boolean>>

Implementation of

IotaTransport.subscribe