From e1793335a756f491593a3f36e3d6b6eee2c7a005 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 17 Dec 2020 02:50:12 -0300 Subject: Replace websocket-client with ws4py Both are dead but well, Python 2.7 is dead, soooo --- game/script.rpy | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'game/script.rpy') diff --git a/game/script.rpy b/game/script.rpy index dd3ee56..fede461 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -39,20 +39,7 @@ label start: # on_open=None, on_message=None, on_error=None, # on_close=None, on_ping=None, on_pong=None, # on_data=None): - if (persistent.ssl_enabled): - stdout(_("Opening new secure socket...")) - ws = wsock.WebSocketApp("wss://"+HOST+":61000", - on_data=ondata, on_error=onerror, on_open=onopen, - on_message=onmsg) - ws.on_open = onopen - renpy.invoke_in_thread(ws.run_forever, sslopt={"cert_reqs": CERT_NONE}) - else: - stdout(_("Opening new socket...")) - ws = wsock.WebSocketApp("ws://"+HOST+":61000", - on_data=ondata, on_error=onerror, on_open=onopen, - on_message=onmsg) - ws.on_open = onopen - renpy.invoke_in_thread(ws.run_forever) + renpy.invoke_in_thread(supervisor, persistent.ssl_enabled) except: # Enter in infinite loop, this will never resolve stdout("Unrecoverable error, the program is dead.") -- cgit v1.2.3-60-g2f50