Skip to content

Broadcast a message to a subset of the network #23

@folkvir

Description

@folkvir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InformationImportant Information about the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions