Skip to main content

createControllerManager

Creates a controller manager.

Syntax

createControllerManager(props);

Parameters

NameTypeDescription
props{ [name: string]: unknown; }Controller props.

Returns

Example

// create a controller manager
const manager = createControllerManager({
status: true,
});

// listen for status changes
manager.events.on('status', status => {
console.log('new status', status);
});

// change the status
manager.status = false;

Available on: Client Server