# pg/on-notify Register a callback for LISTEN/NOTIFY pushes. Returns nil. ## Syntax
[pg/on-notify db closure]
The closure receives `%{ :pid :channel :payload }`. Send `LISTEN` via `pg/exec`; notifications arrive as push events on the same connection. Pass nil to unregister.