Skip to content

Commit 792eeba

Browse files
committed
Adjust readme
1 parent 94fc39b commit 792eeba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Process incoming JSON-RPC requests in Python.
1313

1414
```python
15-
from jsonrpcserver import dispatch, method, Success
15+
from jsonrpcserver import method, serve, Success
1616

1717
@method
1818
def ping():
@@ -24,6 +24,7 @@ if __name__ == "__main__":
2424

2525
Alternatively, use `dispatch`:
2626
```python
27+
from jsonrpcserver import dispatch
2728
response = dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}')
2829
# => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'
2930
```

0 commit comments

Comments
 (0)