RpcServer

Description

Each client MUST provide a JSON RPC server so that other clients can interact with it. RpcServer is a standard module that exposes a JSON RPC server over HTTP. A list of required RPC methods are specified separately.


API

Methods

serve

async function serve(): Promise<void>
Description

Starts the server.

Returns

Promise<void>: Promise that resolves once the server has started.


close

async function close(): Promise<void>
Description

Shuts down the server.

Returns

Promise<void>: Promise that resolves once the server has been shut down.