Posted August 20, 2025 by AUTeddy
Added _can_send_to() guard; prevents RPCs to stale/missing peers. Checks connection status and that the target peer exists (server: in get_peers(), client: only peer 1) before any RPC. Skips bad sends to prevent ENet “Invalid target peer” errors.
Implemented client→server relay for to_id(…) -> When a client calls to_id, it sends a relay request to the server; the server validates and forwards to the target. Clients never talk directly to other clients anymore.
Replaced hard reference to EventBridgeLogger with _eb_log(…) Removes the hard reference to EventBridgeLogger by resolving it at /root/EventBridgeLogger at runtime (fallback to print). No parse errors if the autoload isn’t loaded yet.
Safer JSON load path — If the registry file is missing/invalid, keep EVENTS untouched and emit a warning instead of failing.