So, I'm creating a websocket client in python, this is the code
import websockets
ws = websockets.connect('ws://localhost:6789')
ws.send('asdf')
but whenever I tried to run it, it says
Traceback (most recent call last):
File "client.py", line 5, in <module>
ws.send('asdf')
AttributeError: 'Connect' object has no attribute 'send'