Skip to content

Configure Protocol Muxing sequence #201

Closed
@daviddias

Description

@daviddias

With https://github.com/libp2p/js-libp2p/pull/166/files, the libp2p constructor will be fully refactored and with it comes the option to pass a Protocol Muxing sequence.

My proposal is on communicate this is on https://github.com/libp2p/js-libp2p/pull/166/files#r193032278, however, I'm not married to that solution just yet. Example below:

protocolMuxing: {       // Protocol muxing sequence. libp2p uses sane defaults (below). You can override these with:
  transport: {
    secio: {
      spdy: '*',        // '*' means, from this point forward, accept any protocol
      mplex: '*'
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps upexp/wizardExtensive knowledge (implications, ramifications) requiredstatus/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions