ajrpc
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Async JSON-RPC

This module is a TypeScript implementation of JSON-RPC 2.0.

The reasons for this implementation in particular:

  • Simplicity
    • A single class acts as both client and server
    • Remote calls return a Promise allowing async code to treat remote calls like local calls
    • Zero dependencies
    • Small codebase
  • TypeScript implementation
  • Flexible choice of underlying protocol using Channel implementations
  • Channel implementations may be nested allowing a single transport to support multiple modes
  • Support for unit testing RPC with the PairedChannel

The project is not yet mature. Currently the implementation is not spec conforming because it does not return batch results in an array. Additionally, a mature implementation will have timeout exceptions for RPC calls unless explicitly disabled.

Package Sidebar

Install

npm i ajrpc

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

473 kB

Total Files

27

Last publish

Collaborators

  • joeycarr