I am trying to send a message to my websocket server but I keep getting this error.
Traceback (most recent call last): File "send.py", line 5, in <module> ws = websocket.create_connection("ws://ipaddress:9001") AttributeError: 'module' object has no attribute 'create_connection'
I created a python server file server is started but when I send a message I get this error what could be the problem.
here is the code itself
#!/usr/bin/python import websocket import sys val = sys.argv ws = websocket.create_connection("ws://ipaddress:9001") ws.send(val) ws.close()