async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > IsomorphicEncoder > decode

IsomorphicEncoder.decode() method

Decode the request or response object.

Signature:

decode(encoded: EncodedRequest | EncodedResponse): Requests | Responses | PromiseLike<Requests | Responses>;

Parameters

Parameter Type Description
encoded EncodedRequest | EncodedResponse The encoded request or response object

Returns:

Requests | Responses | PromiseLike<Requests | Responses>