message() function
'message' event occurs each time database connection gets notification to any listening channel. Fired before channel event emitted.
Signature:
export declare function message(chan: string, payload: AnyJson): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
chan |
string |
channel to which notification corresponding to |
|
payload |
notification message payload |
Returns:
void
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.