hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

Stream extensions need a destroy method #37

Open andrewosh opened 2 years ago

andrewosh commented 2 years ago

Right now Hypercore extensions (in lib/extension.js) can be destroyed through a destroy() method, but protocol stream extensions (Hypercore.createProtocolStream(...).registerExtension(...)) do not support destroying.

We'll need to add this.