Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #43 from retke/fix-readme
Browse files Browse the repository at this point in the history
Fix the Python client example to remove /rpc
  • Loading branch information
fscherf authored Feb 19, 2019
2 parents 2364bf3 + f92cbd0 commit ad05d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ There's also Python client, which can be used as follows:
async def ping_json_rpc():
"""Connect to ws://localhost:8080/rpc, call ping() and disconnect."""
"""Connect to ws://localhost:8080/, call ping() and disconnect."""
rpc_client = JsonRpcClient()
try:
await rpc_client.connect('localhost', 8080, '/rpc')
await rpc_client.connect('localhost', 8080)
call_result = await rpc_client.call('ping')
print(call_result) # prints 'pong' (if that's return val of ping)
finally:
Expand Down

0 comments on commit ad05d59

Please sign in to comment.