Skip to main content

Interface: IotaHTTPTransportOptions

Properties

fetch()?

optional fetch: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>


WebSocketConstructor?

optional WebSocketConstructor: {(url, protocols?): WebSocket; prototype: WebSocket; CONNECTING: 0; OPEN: 1; CLOSING: 2; CLOSED: 3; }

Parameters

url

string | URL

protocols?

string | string[]

Returns

WebSocket

prototype

prototype: WebSocket

CONNECTING

readonly CONNECTING: 0

OPEN

readonly OPEN: 1

CLOSING

readonly CLOSING: 2

CLOSED

readonly CLOSED: 3


url

url: string


rpc?

optional rpc: object

headers?

optional headers: HttpHeaders

url?

optional url: string


websocket?

optional websocket: WebsocketClientOptions & object

Type Declaration

url?

optional url: string


inspector?

optional inspector: RequestInspector