BroadcastJoinConfig
constructor(acknowledgeBroadcasts: Boolean, receiveOwnBroadcasts: Boolean, replicationReady: Boolean)(source)
Parameters
acknowledgeBroadcasts
Whether the server should send an acknowledgment message for each broadcast message
receiveOwnBroadcasts
Whether you should receive your own broadcasts
replicationReady
replication_ready option instructs the server to emit a system event once the Postgres replication connection backing this channel is established and ready to stream changes. Listen for it with channel.on('system', {}, (payload) => ...); TODO: fix docs the payload's status is 'ok' (message: 'Replication connection established') on success or 'error' if the connection is not ready in time.