# channel() function · @imqueue/pg-pubsub

Source: https://imqueue.org/api/pg-pubsub/latest/pg-pubsub.channel/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-pubsub 3.0.5 — generated reference, not hand-written

Channel listener event, occurs whenever the listening channel gets a new payload message.

**Signature:**

```typescript
export declare function channel(payload: AnyJson): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| payload | [AnyJson](https://imqueue.org/api/pg-pubsub/latest/pg-pubsub.anyjson/) | event payload |


**Returns:**

void

