Class: abstract ITransport
The transport interface.
Constructors
new ITransport()
new ITransport(): ITransport
Returns
Methods
closeConnection()
abstract closeConnection(): void
Closes the connection to the network.
Returns
void
Defined in
nil/nil.js/src/transport/types/ITransport.ts:22
connect()
abstract connect(): void
Connects to the network.
Returns
void
Defined in
nil/nil.js/src/transport/types/ITransport.ts:17
request()
abstract request<T>(requestObject): Promise<T>
Sends a request.
Type Parameters
| Type Parameter | 
|---|
| 
 | 
Parameters
| Parameter | Type | Description | 
|---|---|---|
| 
 | 
 | The request object. It contains the method and parameters. | 
Returns
Promise<T>
The response.