Skip to content

Commit e0483a5

Browse files
committed
Fix invalid example syntax
1 parent 586d2cd commit e0483a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,11 @@ const sql = postgres({ publications: 'alltables' })
609609

610610
const { unsubscribe } = await sql.subscribe(
611611
'insert:events',
612-
function(row, { command, relation, key, old }) => {
612+
(row, { command, relation, key, old }) => {
613613
// Callback function for each row change
614614
// tell about new event row over eg. websockets or do something else
615615
},
616-
function onsubscribe() => {
616+
() => {
617617
// Callback on initial connect and potential reconnects
618618
}
619619
)

0 commit comments

Comments
 (0)