Closed phillmac closed 4 years ago
I like this idea. What do you think about moving the event relay from here to the createStore
function in orbit-db
proper, and making it a configuration option there?
Or do you mean the relay class itself, to make the class a configurable option?
Not quite sure yet and probably need to sleep on it... we had discussed a while back about utilizing more event passing in general, not just outward but internally between all the different components of the system.
Closing this based on conversation in Gitter, will be moving this functionality to orbit-db
Adds a custom event emitter class to raise any events emitted by the db to the instance scope. This enables listening to all db event types before the specific store has been opened / created. Backwards compatibility is maintained by emitting db scope events as per before. Requires orbitdb/orbit-db/pull/713