A light implementation of JSON RPC 2.0
See the introduction at Github
Function | Description |
---|---|
AsyncCall(thisSideImplementation, options) | Create a RPC server & client. |
AsyncGeneratorCall(thisSideImplementation, options) | The async generator version of the AsyncCall |
batch(asyncCallInstance) | Wrap the AsyncCall instance to use batch call. |
notify(instanceOrFnOnInstance) | Wrap the AsyncCall instance to send notification. |
Interface | Description |
---|---|
AsyncCallLogLevel | What should AsyncCall log to console. |
AsyncCallOptions | Options for AsyncCall() |
AsyncCallStrictJSONRPC | Control the behavior that different from the JSON RPC spec. |
CallbackBasedChannel | This interface represents a "callback" model. |
Console | The minimal Console interface that AsyncCall needs. |
EventBasedChannel | This interface represents a "on message"-"send response" model. |
MessageChannel | The message channel interface that allows |
Serialization | Serialization and deserialization of the JSON RPC payload |
Variable | Description |
---|---|
JSONSerialization | Create a serialization by JSON.parse/stringify |
NoSerialization | Serialization implementation that do nothing |
Type Alias | Description |
---|---|
ErrorMapFunction |