From 21933cdef9177d960e04c3e03606c3326e2caf60 Mon Sep 17 00:00:00 2001 From: William Bruno Date: Tue, 17 Mar 2026 17:04:16 -0400 Subject: [PATCH] changed reserved socket.io event "error" to "appError" --- server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 4cd9aa3..0e46e6b 100644 --- a/server.py +++ b/server.py @@ -305,7 +305,7 @@ class TunneldRunnerSio: elif len(active_udids) == 0: logger.error("Simulation worker: no active tunnel with udid available") await self.context.sio.emit( - "error", + "appError", {"type": "simulation_no_tunnel", "message": "No active tunnel found. Start tunnel first."}, namespace="/", ) @@ -314,7 +314,7 @@ class TunneldRunnerSio: logger.error("Simulation worker: multiple active tunnels; explicit udid required: %s", active_udids) await self.context.sio.emit( - "error", + "appError", { "type": "simulation_udid_required", "message": "Multiple active tunnels found; provide udid in start_simulate_location.", @@ -349,7 +349,7 @@ class TunneldRunnerSio: self.context.udid, ) await self.context.sio.emit( - "error", + "appError", { "type": "simulation_timeout", "udid": self.context.udid, @@ -361,7 +361,7 @@ class TunneldRunnerSio: except Exception: logger.exception("Simulation worker crashed") await self.context.sio.emit( - "error", + "appError", {"type": "simulation_crash", "udid": self.context.udid}, namespace="/", )