async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > ServerEncoding

ServerEncoding interface

Encoder of the server.

Signature:

export interface ServerEncoding<EncodedRequest = unknown, EncodedResponse = unknown> 

Methods

Method Description
decodeRequest(encoded) Encode the response object.
encodeResponse(data) Decode the request object.