async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > IsomorphicEncoder

IsomorphicEncoder interface

Encoder that work for both server and client.

Signature:

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

Methods

Method Description
decode(encoded) Decode the request or response object.
encode(data) Encode the request or response object.