Додан моніторінг застосунку

Додани веб компоненти карточок територій та повідомлень
This commit is contained in:
2025-12-08 00:14:56 +02:00
parent e41590546c
commit 85483b85bb
206 changed files with 2370 additions and 595 deletions

View File

@@ -2,9 +2,16 @@ const { updateApartment } = require("../services/apartments.service");
const { updateBuilding } = require("../services/buildings.service");
const { lockingStand, unlockingStand, updateStand } = require("../services/stand.service");
const { broadcast } = require("../utils/broadcaster");
const { pushToMetrics } = require("../middleware/pushToMetrics");
module.exports = async (wss, ws, message) => {
try {
pushToMetrics({
type: "ws_out",
length: message.length,
timestamp: Date.now()
});
switch (message.type) {
case "apartment":
await updateApartment(ws.user, message.data);