mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
service live configslop
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Kinect Service
|
||||
// Purpose: Composes Kinect hardware capture and browser socket delivery.
|
||||
// Scope: Exposes session-readable state while keeping startup side effects in this service folder.
|
||||
const { loadConfig } = require('../../configuration');
|
||||
const { loadConfig, registerConfigurationHandler } = require('../../configuration');
|
||||
const hardware = require('./hardware');
|
||||
const { registerKinectSocketGateway, kinectEvents } = require('./socketGateway');
|
||||
|
||||
@@ -11,6 +11,10 @@ const gateway = registerKinectSocketGateway({
|
||||
hardware,
|
||||
});
|
||||
|
||||
registerConfigurationHandler('kinect', (kinectConfig) => {
|
||||
gateway.reconfigure({ kinect: kinectConfig || {} });
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
getState: gateway.getState,
|
||||
kinectEvents,
|
||||
|
||||
Reference in New Issue
Block a user