Skip to main content

Class: abstract ITransport

The transport interface.

Constructors

new ITransport()

new ITransport(): ITransport

Returns

ITransport

Methods

closeConnection()

abstract closeConnection(): void

Closes the connection to the network.

Returns

void

Defined

@nilfoundation/niljs/src/transport/types/ITransport.ts:22


connect()

abstract connect(): void

Connects to the network.

Returns

void

Defined

@nilfoundation/niljs/src/transport/types/ITransport.ts:17


request()

abstract request<T>(requestObject): Promise<T>

Sends a request.

Type Parameters

Type Parameter

T

Parameters

ParameterTypeDescription

requestObject

RequestArguments

The request object. It contains the method and parameters.

Returns

Promise<T>

The response.

Defined

@nilfoundation/niljs/src/transport/types/ITransport.ts:12