17 lines
442 B
JavaScript
17 lines
442 B
JavaScript
module.exports = function (RED) {
|
|
function XilicaConnection(config) {
|
|
RED.nodes.createNode(this, config);
|
|
this.host = config.host;
|
|
this.port = parseInt(config.port, 10) || 10007;
|
|
this.timeout = parseInt(config.timeout, 10) || 5000;
|
|
this.credentials = this.credentials || {};
|
|
}
|
|
|
|
RED.nodes.registerType("xilica-connection", XilicaConnection, {
|
|
credentials: {
|
|
password: { type: "password" },
|
|
},
|
|
});
|
|
};
|
|
|