Skip to content

Commit e9c2da2

Browse files
committed
Merge branch 'main' into prepare-v6
2 parents a854670 + cbc8e39 commit e9c2da2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ if __name__ == "__main__":
2222
serve()
2323
```
2424

25-
Alternatively, use `dispatch`:
25+
Or use `dispatch` instead of `serve`:
2626
```python
2727
response = dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}')
2828
# => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'
2929
```
3030

31+
[Watch a video on how to use it.](https://www.youtube.com/watch?v=3_BMmgJaFHQ)
32+
3133
Full documentation is at [jsonrpcserver.com](https://www.jsonrpcserver.com/).
3234

3335
See also: [jsonrpcclient](https://github.com/explodinglabs/jsonrpcclient)

examples/flask_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def ping() -> Result:
1111

1212
@app.route("/", methods=["POST"])
1313
def index():
14-
print(request.get_data().decode())
1514
return Response(
1615
dispatch(request.get_data().decode()), content_type="application/json"
1716
)

0 commit comments

Comments
 (0)