diff --git a/waku-bindings/src/node/mod.rs b/waku-bindings/src/node/mod.rs index cdccb8e..c115d95 100644 --- a/waku-bindings/src/node/mod.rs +++ b/waku-bindings/src/node/mod.rs @@ -90,6 +90,10 @@ impl WakuNodeHandle { let mut ctx = self.ctx.lock().unwrap(); events::waku_set_event_callback(ctx.obj_ptr, f) } + + pub fn events(&self) -> broadcast::Receiver { + self.events_channel.resubscribe() + } } /// Spawn a new Waku node with the given configuration (default configuration if `None` provided)