gun
gun copied to clipboard
No data replication between peers in same computer
Environment 2 peers running independently in different folders, same computer, no Gun configuration. peer A: with no Gun configuration peer B: with http server
Possible expected behavior peer A: Creates data and stores it trough radisk in the radata folder and transmits the data to peer B. peer B: Recieves data and stores it trough radisk in its own radata folder
Actual behavior peer A: Creates data and stores it trough radisk in the radata folder and does some communication with peer B. peer B: Doesn't store data.
Temporary solution or Expected Behavior?
On peer A add peer to the list and disable axe: Gun({peers:['http://localhost:8765/gun'], axe:false})
Peer B in log where Peer A has axe enabled
in {
'@': 'j4wyiwedg7r',
ok: 1,
'#': 'WJGWnn8kv',
_: [Function (anonymous)] {
via: {
wire: [WebSocket],
id: 'j5K0S00b2',
last: 'Ls55VhZKy',
batch: null,
met: 1626894540827,
queue: [],
tail: null,
pid: '0Xt2odHtz'
}
},
'$': <ref *1> Gun {
_: <ref *2> {
'$': [Circular *1],
opt: [Object],
root: [Circular *2],
graph: {},
on: [Function],
ask: [Function: ask],
dup: [Object],
tag: [Object],
sea: [Object],
axe: [Object],
once: 1,
stats: [Object]
}
}
}
Peer B in log where Peer A has axe disabled
in {
'@': 'z2g1cuc4m4e',
ok: 1,
'#': 'iTud2GsNb',
_: [Function (anonymous)] {
via: {
wire: [WebSocket],
id: 'dEMkQICPX',
last: 'NTkLen3Va',
batch: null,
met: 1626894588409,
queue: [],
tail: null,
pid: 'fqbEoF9Ob'
}
},
'$': <ref *1> Gun {
_: <ref *2> {
'$': [Circular *1],
opt: [Object],
root: [Circular *2],
graph: [Object],
on: [Function],
ask: [Function: ask],
dup: [Object],
tag: [Object],
sea: [Object],
axe: [Object],
once: 2,
stats: [Object],
next: [Object],
stop: null
}
}
}
in {
'@': 'z2g1cuc4m4e',
ok: 1,
DBG: undefined,
'#': 'i0dbAtoVP',
_: [Function (anonymous)],
'$': <ref *1> Gun {
_: <ref *2> {
'$': [Circular *1],
opt: [Object],
root: [Circular *2],
graph: [Object],
on: [Function],
ask: [Function: ask],
dup: [Object],
tag: [Object],
sea: [Object],
axe: [Object],
once: 2,
stats: [Object],
next: [Object],
stop: null
}
}
}