This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
refactor: switch to async iterators #82
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
980f750
refactor: wip switch to it-ws and async iterators
4321b7e
feat: adaper with passing tests
616fac9
refactor: async dial that resolves on connection open
1b9c591
fix: listener params and adapter tests
f674122
test: add interface tests
24d0a61
fix: tests
16a6b55
feat: abortable dials
647fa4f
Merge branch 'master' into refactor/async-iterators
bdfcaaf
chore: update interface-transport dependency
6451c39
fix: describe name
89ae00a
fix: tests
e48fee1
refactor: use adapter class in interface-transport
dbcd1ca
fix: remove async from non-async function
4d49993
chore: cleanup
01cd1fd
chore: remove old interface-transport tests
22a75f2
refactor: remove test covered by interface-transport tests
a0e886c
refactor: use abort error from interface-transport
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict' | ||
dirkmc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
const { Adapter } = require('interface-transport') | ||
const withIs = require('class-is') | ||
const WebSockets = require('./') | ||
|
||
// Legacy adapter to old transport & connection interface | ||
class WebSocketsAdapter extends Adapter { | ||
constructor () { | ||
super(new WebSockets()) | ||
} | ||
} | ||
|
||
module.exports = withIs(WebSocketsAdapter, { | ||
className: 'WebSockets', | ||
symbolName: '@libp2p/js-libp2p-websockets/websockets' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If #master, why not released? //cc @jacobheun
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's wrong, this is outdated. We're tackling tcp first and then will circle back to this and the other transports.