Skip to main content

Type Alias: IHttpTransportConfig

type IHttpTransportConfig: object;

The interface representing the configuration of the HTTP transport.

Type declaration

endpoint

endpoint: string;

The network endpoint. It is set to the URL of the network node.

Example

'http://127.0.0.1:8529'

timeout?

optional timeout: number;

The request timeout. If the request is not completed within the timeout, it will be rejected.

Example

1000

Default

20000

Defined

@nilfoundation/niljs/src/transport/types/IHttpTransportConfig.ts:4