PgPubSub.isActive() method
If channel argument passed will return true if channel is in active state (listening by this pub/sub), false - otherwise. If channel is not specified - will return true if there is at least one active channel listened by this pub/sub, false - otherwise.
Signature:
isActive(channel?: string): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
channel |
string |
(Optional) channel to test; omit to test the connection as a whole |
Returns:
boolean
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.