This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
api-workplace-fabric [2018/07/16 15:49] hari |
api-workplace-fabric [2018/07/17 11:04] (current) hari [Server to client data stream] |
||
|---|---|---|---|
| Line 684: | Line 684: | ||
| </code> | </code> | ||
| + | ===== Live occupancy update ===== | ||
| + | ==== Connection ==== | ||
| + | |||
| + | URL | ||
| + | <code> | ||
| + | ws://apiserver:8000/live-occupancy | ||
| + | </code> | ||
| + | |||
| + | ==== Client to server data stream ==== | ||
| + | |||
| + | None | ||
| + | |||
| + | ==== Server to client data stream ==== | ||
| + | |||
| + | <code> | ||
| + | { | ||
| + | "spaceId": "uuid-of-the-room/space-that-is-occupied-or-released", | ||
| + | "departmentId": "uuid-of-the-department-where-the-space-is", | ||
| + | "floorId": "uuid-of-the-floor-where-the-space-is", | ||
| + | "buildingId": "uuid-of-the-building-where-the-space-is", | ||
| + | "isOccupied": true if occupied, false if release | ||
| + | } | ||
| + | </code> | ||