wifi-tally_Oostendam/wifi-tally/hub/lib/NullConnector.js
Eljakim Herrewijnen 50b5fc1824 Initial commit
2021-09-27 21:52:27 +02:00

21 lines
450 B
JavaScript

// 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;