simple-typed-rpc
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

Simple typed RPC

Experimental typesafe RPC library for TypeScript

Usage

Setting up an RPC channel requires

  • A transport passing raw JSON-serialized payloads between the frontend and the backend. Usually consists of a transport client on the frontend side and a transport server on the backend side.
  • A frontend proxy translating method calls into payloads to be passed through the transport, and parsing response payloads into method return values.
  • A backend proxy parsing method call payloads arriving through the transport into method calls onto the actual backend implementation, and translating return values into payloads to be passed back through the transport.

For now, see tests for details.

Readme

Keywords

Package Sidebar

Install

npm i simple-typed-rpc

Weekly Downloads

28

Version

0.5.2

License

MIT

Last publish

Collaborators

  • smphhh