listen
Listens for notifications on a specified PostgreSQL channel and executes a callback for each received notification.
Parameters
The name of the PostgreSQL channel to listen on. The channel name must be valid according to PostgreSQL's naming rules.
The callback function to be executed whenever a notification is received on the specified channel. The callback receives a Notification
object containing details of the notification.
Listens for notifications on specified PostgreSQL channels and executes a callback for each received notification.
Parameters
A list of PostgreSQL channel names to listen on. Each channel name must be valid according to PostgreSQL's naming rules.
The callback function to execute whenever a notification is received on any of the specified channels. The callback receives a Notification
object containing details of the notification.