NOTIFY a channel, with a payload of up to 7999 bytes. Delivered to the listeners when the transaction commits; inside none, at once. A connection also hears its own notifications.
- c: the connection.
- channel: the channel's name.
- payload: the text sent along. Empty for none.
notify :: (c: *Connection, channel: string, payload := "") -> Pg_Error
NOTIFY a channel, with a payload of up to 7999 bytes. Delivered to the listeners when the transaction commits; inside none, at once. A connection also hears its own notifications.
Parameters
- c: *Connection
- the connection.
- channel: string
- the channel's name.
- payload := ""
- the text sent along. Empty for none.