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

Add UTP and WebSockets to the mix #2

Merged
merged 1 commit into from
Mar 14, 2016

Conversation

daviddias
Copy link
Member

@whyrusleeping I've updated js-multiaddr to support uTP (and WebSockets, HTTP and so on) and here is the PR to make js-mafmt to make it understand uTP and WebSockets as well (as I need it for libp2p).

@@ -60,7 +67,7 @@ test('basic stuff works', function (t) {
var tests = Array.from(arguments).slice(1)
tests.forEach(function (test) {
test.forEach(function (testcase) {
t.equal(p.matches(testcase), false, 'should not have matched: ' + testcase + ' ' + p)
t.equal(p.matches(testcase), false, 'should not have matched: ' + testcase + ' ' + testcase)
Copy link
Member

Choose a reason for hiding this comment

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

this change doesnt seem right to me. we're printing that testcase should equal testcase?

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right. I wanted to print 'test', because printing 'p' was just printing [Object object].

@whyrusleeping
Copy link
Member

One comment, then LGTM

@whyrusleeping
Copy link
Member

Thank you!

whyrusleeping added a commit that referenced this pull request Mar 14, 2016
@whyrusleeping whyrusleeping merged commit 57aa084 into multiformats:master Mar 14, 2016
@daviddias daviddias deleted the feature/utp+websockets branch March 14, 2016 16:33
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