Unverified Commit 5ca094d9 authored by Aral Balkan's avatar Aral Balkan
Browse files

Display replicated data and replication status in the interface

parent 29c9360e
......@@ -131,7 +131,14 @@ document.addEventListener('DOMContentLoaded', () => {
const localReadStream = localCore.createReadStream({live: true})
localReadStream.on('data', (data) => {
console.log('[Replicate]', data)
blinkSignal('data')
console.log('Feed [read stream, on data]' , data)
// New data is available on the feed. Display it on the page.
for (let [key, value] of Object.entries(data)) {
hypercoreContentsTextArea.value += `${key}: ${value}\n`
}
})
localCore.on('ready', () => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment