feat: Log camera update response data for debugging purposes; adjust user position parameter in findEnvironment function

This commit is contained in:
2025-04-05 17:40:46 +05:30
parent 58d82da349
commit c5d4507400
6 changed files with 211 additions and 188 deletions

View File

@@ -14,7 +14,7 @@ export const useSocketStore = create<any>((set: any, get: any) => ({
const socket = io(
`http://${process.env.REACT_APP_SERVER_SOCKET_API_BASE_URL}/Builder`,
{
reconnection: false,
reconnection: true,
auth: { email, organization },
}
);
@@ -22,7 +22,7 @@ export const useSocketStore = create<any>((set: any, get: any) => ({
const visualizationSocket = io(
`http://${process.env.REACT_APP_SERVER_SOCKET_API_BASE_URL}/Visualization`,
{
reconnection: false,
reconnection: true,
auth: { email, organization },
}
);
@@ -302,7 +302,13 @@ export const useDrieTemp = create<any>((set: any) => ({
export const useActiveUsers = create<any>((set: any) => ({
activeUsers: [],
setActiveUsers: (x: any) => set({ activeUsers: x }),
setActiveUsers: (callback: (prev: any[]) => any[] | any[]) =>
set((state: { activeUsers: any[] }) => ({
activeUsers:
typeof callback === "function"
? callback(state.activeUsers)
: callback,
})),
}));
export const useDrieUIValue = create<any>((set: any) => ({