0.7.5 • Published 2 years ago
json-rpc-proxy v0.7.5
json-rpc-proxy
The helper functions for JSON-RPC 2.0 requests and notifications.
The module does not check types, nor convert unsupported types (e.g., undefined
to null
). This is to allow JSON-RPC to support as many types and protocols as possible.
Install
npm install --save json-rpc-proxy
# or
yarn add json-rpc-proxy
API
createRequestProxy
function createRequestProxy<T extends object, U = unknown>(createId: () => string): RequestProxy<T, U>
createNotificationProxy
function createNotificationProxy<T extends object, U = unknown>(): NotificationProxy<T, U>
applyRequest
function applyRequest<T>(callables: object, request: JsonRpcRequest<T>): Promise<JsonRpcResponse<T>>
applyNotification
function applyNotification<T>(callables: object, notification: JsonRpcNotification<T>): Promise<void>
0.7.5
2 years ago
0.7.4
3 years ago
0.7.3
3 years ago
0.7.2
4 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.6.17
4 years ago
0.6.16
4 years ago
0.6.15
4 years ago
0.6.14
4 years ago
0.6.13
4 years ago
0.6.11
4 years ago
0.6.10
4 years ago
0.6.9
4 years ago
0.6.8
4 years ago
0.6.7
4 years ago
0.6.6
4 years ago
0.6.5
4 years ago
0.6.4
4 years ago
0.6.3
4 years ago
0.6.2
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.5.1
4 years ago
0.4.3
5 years ago
0.4.2
5 years ago
0.4.1
5 years ago
0.3.0
5 years ago
0.4.0
5 years ago
0.2.0
7 years ago
0.1.0
7 years ago