Finally fixed external nodes!!!

This commit is contained in:
naielv
2025-06-13 15:52:31 +02:00
parent 249ae45273
commit ae1a01b793
2 changed files with 6 additions and 4 deletions

View File

@@ -473,9 +473,9 @@
"https://gun-es05.tech.eus/gun",
"https://gun-es06.tech.eus/gun",
// "https://gun-es07.tech.eus/gun", // No he podido instalar el nodo.
//"https://gun-manhattan.herokuapp.com/gun",
//"https://peer.wallie.io/gun",
//"https://gun.defucc.me/gun",
"https://gun-manhattan.herokuapp.com/gun",
"https://peer.wallie.io/gun",
"https://gun.defucc.me/gun",
];
var SECRET = "";
</script>
@@ -700,6 +700,7 @@
// console.log("Beep")
gun.get(TABLE).get("heartbeat").load(console.debug);
}, 5000);
gun.get(TABLE).on((data) => {var e = true})
</script>
<script id="app_modules">
try {

View File

@@ -1825,8 +1825,9 @@
});
root.on('put', function(msg){
this.to.next(msg); // remember to call next middleware adapter
var put = msg.put, soul = put['#'], key = put['.'], id = msg['#'], ok = msg.ok||'', tmp; // pull data off wire envelope
if (!(root.next || '')[soul]) return;
this.to.next(msg); // remember to call next middleware adapter
disk[soul] = Gun.state.ify(disk[soul], key, put['>'], put[':'], soul); // merge into disk object
if(stop && size > (4999880)){ root.on('in', {'@': id, err: "localStorage max!"}); return; }
//if(!msg['@']){ acks.push(id) } // then ack any non-ack write. // TODO: use batch id.