Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Aug 22, 2024
2 parents 13d167a + c244bcf commit c613363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Close the database, ensuring it is shut down cleanly.

### listen

`.listen(channel: string, callback: (payload: string) => void): Promise<void>`
`.listen(channel: string, callback: (payload: string) => void): Promise<(() => Promise<void>>`

Subscribe to a [pg_notify](https://www.postgresql.org/docs/current/sql-notify.html) channel. The callback will receive the payload from the notification.

Expand Down

0 comments on commit c613363

Please sign in to comment.