notify

abstract suspend fun notify(channel: String, value: String)(source)

Publishes a notification to a specified PostgreSQL channel.

This method sends a notification with a given payload to a PostgreSQL channel, allowing clients listening to the channel to receive the notification.

Parameters

channel

The name of the PostgreSQL channel to which the notification will be sent. The channel name must conform to PostgreSQL's naming rules.

value

The payload of the notification to be sent. This value will be delivered to clients listening on the specified channel.