Comments (2)
Hi, @ikv
This library's main purpose is to provide a protocol implementation and be as much server agnostic as possible. It does support "request-response" functionality via manager and provides optional backends for Django and Flask.
In your case, there is no API request "from outside" as the server sends notifications based on some internal event. That means that you do not need to use a large chunk (80%+) of this library. I would consider two cases:
-
Use this library to make sure notifications are in a correct JSON-RPC format (regular or batch). The library provides some validation, data manipulation, and serialization mechanisms. Please take a look at JSONRPC20Response.
-
Skip this library and manually create a JSON-RPC response object. Since it is created on the server side, you know it is in the right format. In this case, you don't need any format validation or exception handling on the server.
Please let me know what you think about it.
from json-rpc.
In your case, there is no API request "from outside" as the server sends notifications based on some internal event.
This is not the case.
I need to do both: accept external requests and issue notifications.
For example, this protocol requires to push two different events (miming.set_target
and mining.notify
) after first call to mining.authorize
.
from json-rpc.
Related Issues (20)
- Consider switching to CircleCI HOT 1
- pip install json-rpc breaks pyls installation HOT 3
- Django documentation params HOT 8
- json-rpc 1.0 requires 'result' and 'error' attributes in the HTTP responses
- Cors Header Missing ? HOT 1
- Feature proposal: Remote Method Invocation dispatcher HOT 1
- Can't an AsyncJSONRPCResponseManager be added? HOT 4
- Need a way to intercept exception to send http 401
- Unreachable OpenRPC rpc.discover method HOT 1
- ĺ źĺŽš django 4.0 HOT 2
- JSONRPCResponseManager.handle silences the exception if "id" is not passed
- Missing git tags for 1.14.0 and 1.15.0 releases
- Add names for django's views HOT 3
- License file in pypi archive HOT 5
- Link to implementations on project page is useless
- Uart as a transport layer HOT 1
- Using SELF in class methods when using JSON-RPC as a class HOT 2
- `make env` fails without requirements-dev.txt HOT 1
- How to deploy on production server? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-rpc.