diff --git a/Web/js/ballotvoter.js b/Web/js/ballotvoter.js new file mode 100644 index 0000000..3d7fba1 --- /dev/null +++ b/Web/js/ballotvoter.js @@ -0,0 +1,21 @@ +class MqttMessenger{ + +}; + +class BallotVoter{ + constructor(onVote, messenger) { + this.cfg = ""; //load the configuration file. + this.messenger = messenger; + + }; + + onConnect(){ + console.log("Connected"); + // Send a connected message to the swarm. + }; + + onMessage(message){ + print("Message Received"); + // Unpack the message. + }; +}; \ No newline at end of file