Overview of json-rpc-2.0
mainThe json-rpc-2.0 library enables client and server communication using function calls compliant with the JSON-RPC 2.0 specification.
Key features include:
- Protocol Agnostic: Can be used over HTTP, WebSocket, TCP, UDP, inter-process communication, or any other transport layer. This makes migrating between protocols (e.g., from HTTP to WebSocket) straightforward.
- Zero External Dependencies: The package is lightweight and avoids dependency conflicts.
- Cross-Platform: Compatible with both browser and Node.js environments.
- First-class TypeScript Support: Written in TypeScript with support for strongly typed client and server calls.