{"library":"json-rpc2","type":"library","category":null,"description":"JSON-RPC 2.0 server and client library supporting HTTP, TCP, and WebSocket transports for Node.js. Version 2.0.0 (latest) uses native EventEmitter and enforces RFC-compliant request id types (String, Number, or null). Released under MIT license with moderate maintenance cadence. Differentiators include simple API, built-in authentication for TCP sockets, class extension via ES5Class mixins, and WebSocket support out of the box. Requires Node >= 10.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","json","rpc","rpc2","json-rpc","json-rpc2","jsonrpc","jsonrpc2","server"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install json-rpc2","imports":["import rpc from 'json-rpc2'; const server = rpc.Server.$create(...)","const rpc = require('json-rpc2'); const client = rpc.Client.$create(8000, 'localhost');","import rpc from 'json-rpc2'; rpc.Endpoint.$include({ ... });"]},{"cmd":"yarn add json-rpc2","imports":[]},{"cmd":"pnpm add json-rpc2","imports":[]}],"homepage":"https://github.com/pocesar/node-jsonrpc2#readme","github":"git://github.com/pocesar/node-jsonrpc2","docs":null,"changelog":null,"pypi":null,"npm":"json-rpc2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}