PostgreSQLDatabase.Listen
From Xojo Documentation
Method
Listens for notifications named "Name".
Notes
Used in conjunction with the Notify and CheckForNotifications methods. Notifications are received in the ReceivedNotification event handler.
Sample Code
Start listening for a specific notification:
// db is a previously connected PostgreSQLDatabase
db.Listen("RefreshAll")
db.Listen("RefreshAll")