Use `ip.events.register`.