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

fix: connection emits #352

Merged
merged 2 commits into from
Apr 11, 2019
Merged

fix: connection emits #352

merged 2 commits into from
Apr 11, 2019

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Apr 10, 2019

So peer:connect and peer:disconnect are a bit misleading, as they actually have to do with muxed connections and our actual connection status to a peer. This creates problems for things like the Connection Manager that need to know about all connections in order to do its job properly. These events are used by many different things so changing their behaviors and replacing them with more appropriately named events isn't reasonable to do at this point.

This introduces two new events, connection:start and connection:end that can be used by the Connection Manager to better keep track of connections.

@ghost ghost assigned jacobheun Apr 10, 2019
@ghost ghost added the status/in-progress In progress label Apr 10, 2019
@jacobheun jacobheun changed the base branch from feat/disco-strategies to master April 11, 2019 10:47
@jacobheun jacobheun marked this pull request as ready for review April 11, 2019 11:08
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 313b1ea into master Apr 11, 2019
@jacobheun jacobheun deleted the fix/connection-emits branch April 11, 2019 11:49
@ghost ghost removed the status/in-progress In progress label Apr 11, 2019
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
* fix: enable and fix browser tests

* remove file selection in tests

Co-authored-by: Marin Petrunic <[email protected]>
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
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