package pidgio

  1. Overview
  2. Docs

pidgio

API

Library pidgio

  • Pidgio A library for writing JSON-RPC 2.0 servers that communicate over a process's standard streams rather than a socket. You declare a set of methods (using Highway), each with its own parameter decoding and result encoding (using Pidgin), and the library handles the rest of the protocol: reading framed messages from stdin, parsing and validating envelopes, routing requests to handlers, distinguishing requests from notifications, serialising results and errors back to stdout, and reporting malformed input with the standard error codes.