wifi-tally_Oostendam/wifi-tally/hub/lib/NullConnector.js

21 lines
450 B
JavaScript
Raw Normal View History

2021-09-27 19:52:27 +00:00
// a connector that does not do anything
class NullConnector {
constructor(communicator) {
this.communicator = communicator
}
connect() {
console.log("No video mixer connected.")
this.communicator.notifyProgramChanged(null, null)
}
disconnect() {}
isConnected() {
// it is never supposed to be connected
return false
}
}
NullConnector.ID = "null"
module.exports = NullConnector;