Support autoClose option
andrewosh opened this issue · comments
Andrew Osheroff commented
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).