UNPKG

picorpc

Version:

A tiny RPC library and spec, inspired by JSON-RPC 2.0 and tRPC.

17 lines (16 loc) 362 B
/* IMPORT */ import { VERSION } from '../constants.js'; import Response from './response.js'; /* MAIN */ class ResponseSuccess extends Response { /* CONSTRUCTOR */ constructor(handler, id, result) { super(handler, { version: VERSION, id, result }); } } /* EXPORT */ export default ResponseSuccess;