A lightweight JSON RPC client & server
Home > async-call-rpc > ServerEncoding
Encoder of the server.
Signature:
export interface ServerEncoding<EncodedRequest = unknown, EncodedResponse = unknown>
| Method | Description |
|---|---|
| decodeRequest(encoded) | Encode the response object. |
| encodeResponse(data) | Decode the request object. |