PostgreSQL listen/notify: Connection terminated unexpectedly

My app listens to notifications from a Fly Postgres db. If I proxy the database connection and run my app locally, it works fine. But when deployed, this connection is immediately closed.

Normal database queries work just fine, it’s only the listen/notification connection that is broken. I am not sure how to debug this, can anyone help me?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.