PgPubSub.destroy() method

Destroys this object properly, destroying all locks, closing all connections and removing all event listeners to avoid memory leaking. So whenever you need to destroy an object programmatically - use this method. Note, that after destroy it is broken and should be removed from memory.

Signature:

destroy(): Promise<void>;

Returns:

Promise<void>

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