p2pt icon indicating copy to clipboard operation
p2pt copied to clipboard

[Enhancement] keep a list of peers internally in the API, and add a P2PT.sendAll(msg) function

Open therealadityashankar opened this issue 5 years ago • 0 comments

Hey Subins, my apologies for opening so many issues and no PRs,

I think having to manually deal with the abstraction of peers is kinda annoying, and if a user simply wants to send a message to all listening peers he should directly be able to do so without having to store all peers in a list

usage example:

p2pt.sendAll(JSON.stringify({message:"Hi Everyone!"}))

therealadityashankar avatar Oct 18 '20 11:10 therealadityashankar