A lightweight JSON RPC client & server
Home > async-call-rpc > IsomorphicEncoder > encode
Encode the request or response object.
Signature:
encode(data: Requests | Responses): EncodedRequest | EncodedResponse | PromiseLike<EncodedRequest | EncodedResponse>;
Parameter | Type | Description |
---|---|---|
data | Requests | Responses | The request or response object |
Returns:
EncodedRequest | EncodedResponse | PromiseLike<EncodedRequest | EncodedResponse>