Skip to main content

IotaHTTPTransportOptions

@iota/iota-sdk


@iota/iota-sdk / client / IotaHTTPTransportOptions

Interface: IotaHTTPTransportOptions

Defined in: sdk/typescript/src/client/http-transport.ts:23

Properties​

fetch?​

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

Defined in: sdk/typescript/src/client/http-transport.ts:24

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

URL | RequestInfo

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | URL | Request

init?​

RequestInit

Returns​

Promise<Response>


inspector?​

optional inspector?: RequestInspector

Defined in: sdk/typescript/src/client/http-transport.ts:34


rpc?​

optional rpc?: object

Defined in: sdk/typescript/src/client/http-transport.ts:27

headers?​

optional headers?: HttpHeaders

url?​

optional url?: string


url​

url: string

Defined in: sdk/typescript/src/client/http-transport.ts:26


websocket?​

optional websocket?: WebsocketClientOptions & object

Defined in: sdk/typescript/src/client/http-transport.ts:31

Type Declaration​

url?​

optional url?: string


WebSocketConstructor?​

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

Defined in: sdk/typescript/src/client/http-transport.ts:25

Parameters​

url​

string | URL

protocols?​

string | string[]

Returns​

WebSocket

CLOSED​

readonly CLOSED: 3

CLOSING​

readonly CLOSING: 2

CONNECTING​

readonly CONNECTING: 0

OPEN​

readonly OPEN: 1

prototype​

prototype: WebSocket