Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reveal how many peers have received a message #47

Open
hackergrrl opened this issue Jun 13, 2019 · 6 comments
Open

reveal how many peers have received a message #47

hackergrrl opened this issue Jun 13, 2019 · 6 comments

Comments

@hackergrrl
Copy link
Member

Something like

core.publish({type:'chat/text', content: 'hello'}, function (err, msg, uploadListener) {
  uploadListener.on('uploaded', function (peerKey) {
    // update UI
  })
})

This'd be ephemeral data, and so wouldn't be persisted to disk (unless we wanted to start doing that). It'd be enough for a short-lived indicator beside a message to show that it's been shared to some peers in the swarm.

@cblgh
Copy link
Member

cblgh commented Jun 13, 2019 via email

@hackergrrl
Copy link
Member Author

hackergrrl commented Jun 13, 2019 via email

@cblgh
Copy link
Member

cblgh commented Jun 14, 2019

@noffle ah yes great!

@cblgh
Copy link
Member

cblgh commented Jul 29, 2019

@substack's ACK pr for hypercore would be great for this holepunchto/hypercore#215

@cblgh
Copy link
Member

cblgh commented Aug 7, 2019

holepunchto/hypercore#215 has landed!! this is now possible to implement using the latest hypercore

@dwblair
Copy link

dwblair commented Aug 7, 2019

W0000T this is great!! Thanks @cblgh, and thanks to @substack for the work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants