BIST Lab — Sungkyunkwan University

Smart Lab Digital Twin

POST
Ingest Snapshot
/api/lab/ingest
Windows PC pushes a full lab snapshot every 5 min.
Header: X-API-Key: smartlab-secret-key
Broadcasts lab_update via Socket.IO to room “lab”.
GET
Current Snapshot
/api/lab/current
Returns the latest lab snapshot (pre-loaded from CSV files on startup, then overwritten by POST /ingest in real-time). Unity WebGL polls this on scene load; live updates arrive via Socket.IO event lab_update.
View Endpoint
Join Lab Room
emit(“join”, “lab”)
Unity client emits join with payload “lab” after connecting. Server then pushes lab_update events to this client on every ingest.