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

Commit ad05d59

Browse files
authored
Merge pull request #43 from retke/fix-readme
Fix the Python client example to remove /rpc
2 parents 2364bf3 + f92cbd0 commit ad05d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ There's also Python client, which can be used as follows:
119119
120120
121121
async def ping_json_rpc():
122-
"""Connect to ws://localhost:8080/rpc, call ping() and disconnect."""
122+
"""Connect to ws://localhost:8080/, call ping() and disconnect."""
123123
rpc_client = JsonRpcClient()
124124
try:
125-
await rpc_client.connect('localhost', 8080, '/rpc')
125+
await rpc_client.connect('localhost', 8080)
126126
call_result = await rpc_client.call('ping')
127127
print(call_result) # prints 'pong' (if that's return val of ping)
128128
finally:

0 commit comments

Comments
 (0)