4 ms·
Create a collection called MyVars and add this to your Server.js file: Meteor.setInterval(function(){ for(var i in global){ if(MyVars.find({name:i}).count(
by wavesounds 14y ago
Create a collection called MyVars and add this to your Server.js file:
Meteor.setInterval(function(){
for(var i in global){
if(MyVars.find({name:i}).count()==0){
MyVars.insert({name:i});
console.log("New Public Variable: ", i);
}
}
}, 5000);
Thanks for the fun challenge :-)