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()
After reading the documentation, i found solution myself
self.ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})