File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ if __name__ == "__main__":
22
22
serve()
23
23
```
24
24
25
- Alternatively, use ` dispatch ` :
25
+ Or use ` dispatch ` instead of ` serve ` :
26
26
``` python
27
27
response = dispatch(' {"jsonrpc": "2.0", "method": "ping", "id": 1}' )
28
28
# => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'
29
29
```
30
30
31
+ [ Watch a video on how to use it.] ( https://www.youtube.com/watch?v=3_BMmgJaFHQ )
32
+
31
33
Full documentation is at [ jsonrpcserver.com] ( https://www.jsonrpcserver.com/ ) .
32
34
33
35
See also: [ jsonrpcclient] ( https://github.com/explodinglabs/jsonrpcclient )
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ def ping() -> Result:
11
11
12
12
@app .route ("/" , methods = ["POST" ])
13
13
def index ():
14
- print (request .get_data ().decode ())
15
14
return Response (
16
15
dispatch (request .get_data ().decode ()), content_type = "application/json"
17
16
)
You can’t perform that action at this time.
0 commit comments