UNPKG

picorpc

Version:

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

13 lines (12 loc) 298 B
/* IMPORT */ import createAbstractClient from './abstract.js'; /* MAIN */ const createMemoryClient = (options) => { const { context, server } = options; return createAbstractClient({ context, handler: server.handle }); }; /* EXPORT */ export default createMemoryClient;