UNPKG

picorpc

Version:

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

14 lines (13 loc) 323 B
/* IMPORT */ import createAbstractServer from './abstract.js'; import { noop } from '../utils.js'; /* MAIN */ const createMemoryServer = (options) => { const { procedures } = options; return createAbstractServer({ procedures, handler: noop }); }; /* EXPORT */ export default createMemoryServer;