IO-2924-Refactor-Production-board-to-use-Socket-Provider: Finalize

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-26 11:03:46 -04:00
parent 932f572fb5
commit 8052767002
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ const useSocket = (bodyshop) => {
socketRef.current = null; socketRef.current = null;
} }
}; };
}, [bodyshop.id]); }, [bodyshop?.id]);
return { socket: socketRef.current, clientId }; return { socket: socketRef.current, clientId };
}; };

View File

@@ -27,6 +27,7 @@ exports.default = async (req, res) => {
useremail useremail
} }
}); });
ioRedis.to(getBodyshopRoom(bodyshopid)).emit("bodyshop-message", { ioRedis.to(getBodyshopRoom(bodyshopid)).emit("bodyshop-message", {
operationName, operationName,
useremail useremail