feature/IO-2924-Refactor-Production-Board-For-Sockets - Checkpoint - Hasura Trigger recreated / boilerplate

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-12 15:32:29 -04:00
parent a2d95dbce3
commit a08125df54
5 changed files with 513 additions and 3 deletions

View File

@@ -51,6 +51,9 @@ async function registerSocketEvents(socket) {
// Register event to clear DMS session
registerDmsClearSessionEvent(socket);
// Register Production Board events
registerProductionBoardEvents(socket);
// Handle socket disconnection
socket.on("disconnect", async () => {
await createLogEvent(socket, "DEBUG", `User disconnected.`);
@@ -106,6 +109,8 @@ function registerPbsArEvents(socket) {
});
}
function registerProductionBoardEvents(socket) {}
// PBS AP-specific socket events
function registerPbsApEvents(socket) {
socket.on("pbs-calculate-allocations-ap", async (billids, callback) => {