Finally fixed external nodes!!!
This commit is contained in:
@@ -473,9 +473,9 @@
|
|||||||
"https://gun-es05.tech.eus/gun",
|
"https://gun-es05.tech.eus/gun",
|
||||||
"https://gun-es06.tech.eus/gun",
|
"https://gun-es06.tech.eus/gun",
|
||||||
// "https://gun-es07.tech.eus/gun", // No he podido instalar el nodo.
|
// "https://gun-es07.tech.eus/gun", // No he podido instalar el nodo.
|
||||||
//"https://gun-manhattan.herokuapp.com/gun",
|
"https://gun-manhattan.herokuapp.com/gun",
|
||||||
//"https://peer.wallie.io/gun",
|
"https://peer.wallie.io/gun",
|
||||||
//"https://gun.defucc.me/gun",
|
"https://gun.defucc.me/gun",
|
||||||
];
|
];
|
||||||
var SECRET = "";
|
var SECRET = "";
|
||||||
</script>
|
</script>
|
||||||
@@ -700,6 +700,7 @@
|
|||||||
// console.log("Beep")
|
// console.log("Beep")
|
||||||
gun.get(TABLE).get("heartbeat").load(console.debug);
|
gun.get(TABLE).get("heartbeat").load(console.debug);
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
gun.get(TABLE).on((data) => {var e = true})
|
||||||
</script>
|
</script>
|
||||||
<script id="app_modules">
|
<script id="app_modules">
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1825,8 +1825,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
root.on('put', function(msg){
|
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
|
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
|
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(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.
|
//if(!msg['@']){ acks.push(id) } // then ack any non-ack write. // TODO: use batch id.
|
||||||
|
|||||||
Reference in New Issue
Block a user