0

def ws_run(): global ws ws = websocket.WebSocketApp(url,on_open=on_open,on_message=on_message,on_error=on_error,on_close=on_close) ws.run_forever()

  • Please trim your code to make it easier to find your problem. Follow these guidelines to create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). – Community Aug 05 '22 at 13:52

1 Answers1

0

After reading the documentation, i found solution myself

self.ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})