feat: add CORS support and enhance session routes for better sensor management

This commit is contained in:
Giuseppe Raffa
2026-04-14 19:39:26 +02:00
parent 137c6131c3
commit bf66845528
4 changed files with 121 additions and 12 deletions

View File

@@ -103,7 +103,7 @@ function handleSensorConnection(ws) {
ws.on('message', (data) => {
try {
const packet = decode(data);
const { ts, ...fields } = packet;
const { ts, _m, ...fields } = packet;
writeSensorData(fields, sensorName, sessionId, ts);