PgPubSub.on() method

Sets 'reconnect' event handler

Signature:

on(event: 'reconnect', listener: typeof reconnect): this;

Parameters

Parameter

Type

Description

event

'reconnect'

'reconnect' — a reconnect attempt was made, with the attempt number

listener

typeof reconnect

handler invoked when a reconnect attempt was made, with the attempt number.

Returns:

this

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.