Comments (5)
@solorab , let me take a look.
There is a question: Why do you need this method? Could you provide use case? May be it is possible to use json-rpc notification for that.
from json-rpc.
I want to support putting ids to requests to call methods written to listen notification.
When I write a function for notification and a client sends a request with id, I want to return a valid response to the request. I don't like to return nothing to client (forbidden by the specification) nor add a line to return a dummy result explicitly.
from json-rpc.
I see. If you send id within request, current implementation does not support None response. As I get you right, you need to notify server from the client side (to call methods written to listen notification).
If you omit ids for request (either explicitly from client, or via passing is_notification=True to Request constructor) then you send notification. Notification does not require any response from dispatcher function, so, you could use "return None".
If notification function is executed correctly, server sends 200 Response, if there are exceptions raised during notification, response would have error in the body. Basically, if something returned, then there are errors.
@solorab, does it work for you?
from json-rpc.
I am writing an application which works with plugins through TCP. So It cannot return returncodes and I want to accept requests widely.
Please excuse me adding information later.
from json-rpc.
Information was not added to the issue, closed as outdated.
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
- Server issued notifications HOT 2
- 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.