Skip to content

early timeout on LISTEN query #74

@Lheurt

Description

@Lheurt

I properly receive "notification" events when I issue a LISTEN query, but the connection seems to timeout rather fast (about 15 seconds in). I can't seem to find anyway to prevent the timeout or catch it when it happens. Any existing solution to this ?

pg.connect(pgConnectionString, function(err, client) {
    client.query('LISTEN "watcher"');
    client.on('notification', function(data) {
        console.log(data.payload);
    });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions