0.0.7 • Published 8 months ago
@oscar-js/qsc-connector v0.0.7
@oscar-js/qsc-connector
About
This module provides a simple way to connect to a Q-sys Remote Control Server providing a easy to use interface where you can start adding the application's business logic.
Install
Using npm:
npm install @oscar-js/qsc-connectorUsage
To include it as part of a Node.js app, use the following:
import QSC from '@oscar-js/qsc-connector';
const qsc = await QSC({
host: '<my-host>',
port: '<my-port>',
});
qsc.emitter.on('message', (message) => console.log(message));
const messageId = qsc.call({
method: 'Component.Get',
params: {
Name: '<component-name>',
Controls: [{ Name: '<control-name>' }],
},
})