Add tf graphs and update some web stuff
This commit is contained in:
@@ -3,10 +3,12 @@ class MqttMessenger{
|
||||
};
|
||||
|
||||
class BallotVoter{
|
||||
constructor(onVote, messenger) {
|
||||
this.cfg = ""; //load the configuration file.
|
||||
constructor(onVote, messenger, host) {
|
||||
// Not using a configuration file.
|
||||
this.messenger = messenger;
|
||||
|
||||
this.host = host;
|
||||
this.swarm = "swarm";
|
||||
|
||||
};
|
||||
|
||||
onConnect(){
|
||||
@@ -17,5 +19,12 @@ class BallotVoter{
|
||||
onMessage(message){
|
||||
print("Message Received");
|
||||
// Unpack the message.
|
||||
messageb = message.payloadBytes;
|
||||
var messageD = msgpack.decode(message.payloadBytes)
|
||||
console.log(messageD)
|
||||
if(messageD["type"] == "reqvote"){
|
||||
console.log("Received vote message");
|
||||
submit_vote();
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user