text: #!/usr/bin/env python
  
  import asyncio
  import websockets
  
  async def hello():
      uri = "ws://localhost:8765"
      async with websockets.connect(uri) as websocket:
          await websocket.send("Hello world!")
          await websocket.recv()
  
  asyncio.run(hello())
  