🏗 Added a real time import stats panel

This commit is contained in:
2026-03-05 12:39:16 -05:00
parent 2b4ee716e3
commit aec989d021
5 changed files with 423 additions and 152 deletions

View File

@@ -49,7 +49,9 @@ export const useStore = create<StoreState>((set, get) => ({
getSocket: (namespace = "/") => {
const ns = namespace === "/" ? "" : namespace;
const existing = get().socketInstances[namespace];
if (existing?.connected) return existing;
// Return existing socket if it exists, regardless of connection state
// This prevents creating duplicate sockets during connection phase
if (existing) return existing;
const sessionId = localStorage.getItem("sessionId");
const socket = io(`${SOCKET_BASE_URI}${ns}`, {