import websocket
import ssl
from websocket import create_connection
counter = 0
while counter <= 100:
ws = websocket.WebSocket(sslopt={"cert_reqs": ssl.CERT_NONE})
ws.connect("wss://echo.websocket.org")
print("Sending 'Hello, World'...")
ws.send("Hello, World")
print("Sent")
print("'%s'" % counter)
print("Receiving...")
result = ws.recv()
print("Received '%s'" % result)
counter +1