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

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

`'unlisten'` event occurs each time channel ends being listening

**Signature:**

```typescript
export declare function unlisten(channels: string[]): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| channels | string\[\] | list of channels being stopped listening |


**Returns:**

void

