Skip to content

Commit

Permalink
modify websocket sample
Browse files Browse the repository at this point in the history
Update by @WestwoodForever
  • Loading branch information
uJhin committed Jan 10, 2022
1 parent b77628f commit a6f9107
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ WebSocket Client
# Definition async function
async def ticker(sock, payload):
async with sock as conn:
await conn.send(payload)
while True:
await conn.send(payload)
recv = await conn.recv()
data = recv.decode('utf8')
result = json.loads(data)
Expand All @@ -132,5 +132,7 @@ WebSocket Client
Donation
*********
- BTC: 3NVw2seiTQddGQwc1apqudKxuTqebpyL3s
- ETH: 0x60dd373f59862d9df776596889b997e24bee42eb
.. image:: https://img.shields.io/badge/BTC-3NVw2seiTQddGQwc1apqudKxuTqebpyL3s-blue?style=flat-square&logo=bitcoin
:alt: uJhin's BTC
.. image:: https://img.shields.io/badge/ETH-0x60dd373f59862d9df776596889b997e24bee42eb-blue?style=flat-square&logo=ethereum
:alt: uJhin's ETH

0 comments on commit a6f9107

Please sign in to comment.