title: how can I define this and call to use it?
body: <p>I am trying to define this sending message function. But there is something wrong..</p>
  
  <pre><code>import asyncio
  import websockets
  
  
  async def send_msg(msg):
      async with websockets.client.Connect(url) as websocket:
          print("Connected to WebSocket!")
  
          await websocket.send(msg)
  send_msg('hi')
  
  loop = asyncio.get_event_loop()
  task = loop.create_task(send_msg())
  loop.run_until_complete(task)
  
  TypeError: send_msg() missing 1 required positional argument: 'msg'
  </code></pre>
  
  <p>Can anybody help me? Thank you</p>