From dd7d92991843aa1880ae9c6f9ba22993acf7f990 Mon Sep 17 00:00:00 2001 From: zombieb Date: Thu, 27 Mar 2025 00:47:48 -0400 Subject: [PATCH] Message for myself later when I need to debug this * undefined access error when setting a profile's socket handler * Create a unified access API for profiles, rather than instantiating profiles everywhere - this should fix all sync issues, ever --- src/socket/socket.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/socket/socket.ts b/src/socket/socket.ts index 833139c..444edcf 100644 --- a/src/socket/socket.ts +++ b/src/socket/socket.ts @@ -15,6 +15,7 @@ export class SignalRSocketHandler { this.#socket = socket; this.#profile = player; + throw new Error("This will fail due to undefined access attempt. Debug this. Also, please unify profiles."); player.setSocketHandler(this); this.log.source += player.getId().toString();