hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support autoClose option

andrewosh opened this issue · comments

It'd be nice to have an autoClose constructor option that automatically closes the Hypercore whenever its session count drops to 0.

This would need to account for the initial session count being 0 (e.g. wait for the first session to be created before counting subsequent sessions).