-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
import { StreamStat } from '@libp2p/interface-connection'; | ||
import { logger } from '@libp2p/logger'; | ||
// import { logger } from '@libp2p/logger'; |
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.
You don't need/want any logging?
I suppose that makes sense. The Stream's methods could be called very frequently.
|
||
private dataChannel?: RTCDataChannel; | ||
reset(): void { | ||
this.close(); |
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.
Should this, and also some other methods, alter this.stat
?
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.
Yes, I will add that in a future commit.
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.
LGTME
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Implemented a simple stream API for the DataChannel.