Closed mafintosh closed 2 years ago
Ah that's a great point, it's tied to the remote lifecycle yes. However, if the remote "rejects" this core, hypercore already keeps it around if the remote opens it later (ie it's lifecycle is already implicitly tied to the remote). I think the solution is another method core.unreplicate(stream)
where if the remote rejects it corestore could unreplicate
it.
Yeah makes sense with the explicit unreplicate
. Great to have this
Alpha 36
Does it matter if the remote is also replicating this core before the session is opened? Thinking about the corestore case where you'll replicate but the remote lacks the capability. In that case the core's lifecycle is still bound to the protocol stream's.