Skip to content

Commit

Permalink
Merge pull request #367 from michaelhly/fix-ws-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Jul 5, 2023
2 parents b8cf1a7 + 9926849 commit c60f9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def main():
async with connect("wss://api.devnet.solana.com") as websocket:
await websocket.logs_subscribe()
first_resp = await websocket.recv()
subscription_id = first_resp.result
subscription_id = first_resp[0].result
next_resp = await websocket.recv()
print(next_resp)
await websocket.logs_unsubscribe(subscription_id)
Expand All @@ -100,7 +100,7 @@ async def main():
async with connect("wss://api.devnet.solana.com") as websocket:
await websocket.logs_subscribe()
first_resp = await websocket.recv()
subscription_id = first_resp.result
subscription_id = first_resp[0].result
async for idx, msg in enumerate(websocket):
if idx == 3:
break
Expand Down

0 comments on commit c60f9ff

Please sign in to comment.