Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

feat: add onStreamEnd, muxer.streams and timeline #56

Merged
merged 1 commit into from
Sep 20, 2019
Merged

Conversation

jacobheun
Copy link
Contributor

  • Adds muxer.onStreamEnd to allow consumers to handle any additional stream tracking they may wish to do. For example, js-libp2p will track additional metadata, such as the protocol being used on the stream. onStreamEnd will allow final metadata to be recorded and subsequent cleanup of that tracking to happen more effectively.
  • Adds muxer.streams to enable consumers to get a list of all open streams a muxer has, this is particularly useful for introspection and debugging.
  • Adds timeline checking on muxed streams. This provides accurate metadata for when a stream has been opened/closed.

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.

🎉

@jacobheun jacobheun merged commit 0f60832 into master Sep 20, 2019
@jacobheun jacobheun deleted the feat/streams branch September 20, 2019 10:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants