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

feat: allow transport options to be passed on creation #524

Merged
merged 3 commits into from
Dec 20, 2019

Conversation

jacobheun
Copy link
Contributor

This allows custom options to be passed along to transport creation, in addition to libp2p and an Upgrader being passed. This is needed for things like passing a custom WebRTC instance to the WebRTC based transports.

I also added the check for the enabled relay before adding the Circuit transport.

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jacobheun jacobheun merged commit 0d4b2bd into refactor/async-await Dec 20, 2019
@jacobheun jacobheun deleted the feat/transport-options branch December 20, 2019 16:32
jacobheun added a commit that referenced this pull request Jan 24, 2020
* feat: allow transport options to be passed on creation

* fix: only add circuit transport if enabled

* chore: fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants