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

Configure Protocol Muxing sequence #201

Closed
daviddias opened this issue Jun 5, 2018 · 1 comment
Closed

Configure Protocol Muxing sequence #201

daviddias opened this issue Jun 5, 2018 · 1 comment
Labels
exp/wizard Extensive knowledge (implications, ramifications) required P1 High: Likely tackled by core team if no one steps up status/ready Ready to be worked

Comments

@daviddias
Copy link
Member

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: '*'
    }
  }
}
@daviddias daviddias mentioned this issue Jun 5, 2018
3 tasks
@daviddias daviddias added the status/ready Ready to be worked label Jun 19, 2018
@daviddias daviddias added exp/wizard Extensive knowledge (implications, ramifications) required P1 High: Likely tackled by core team if no one steps up labels Jul 2, 2018
@jacobheun
Copy link
Contributor

This is now an array in the config and it will prioritize based on the order, although we currently only support mplex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/wizard Extensive knowledge (implications, ramifications) required P1 High: Likely tackled by core team if no one steps up status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

2 participants