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

Broadcast a message to a subset of the network #23

Open
folkvir opened this issue Aug 10, 2018 · 0 comments
Open

Broadcast a message to a subset of the network #23

folkvir opened this issue Aug 10, 2018 · 0 comments
Labels
Information Important Information about the library

Comments

@folkvir
Copy link
Member

folkvir commented Aug 10, 2018

Broadcasting a message to a subset of the network will not work. Each peer has to register a common Communication in order to route messages.
If you create the following network

  • A -> B; B -> C; (if you want to test youself, add these options to the rps.options config object:
    new Foglet({rps: { options: {delta: 10000000, a: 0, b: 0 }}}))
  • A and C create a channel on the protocol 1
  • A send a broadcast message, B will receive the message but will not route the message to C correctly because B did not register the protocol.

If you really want to broadcast a message to a subset of the network. Just register a common protocol and filter messages in your application. Or create a new Foglet for this specific subset network with new WebRTC connections.

@folkvir folkvir added the Information Important Information about the library label Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Information Important Information about the library
Projects
None yet
Development

No branches or pull requests

1 participant