p2pt
p2pt copied to clipboard
[Enhancement] keep a list of peers internally in the API, and add a P2PT.sendAll(msg) function
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!"}))