Open ajayrao80 opened 6 years ago
You should listen for the replicated
event and try to query the database then. Please note that replicated
is different from the replicate
event, which instead triggers before replicating.
Moving this to the Field Manual so we can go into more detail
I'm testing this on two computers. Above code is in one computer.
Below code is in another. One computer creates the db and adds an entry to it another one tries to retrieve it.
But second computer which is retrieving the entries (at least trying to) returns undefined. Not sure why i can't load a remote database. I've also tried querying the database after the replication event but replication event is not triggering at all.