# PgPubSub.listen() method · @imqueue/pg-pubsub

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

Starts listening given channel. If singleListener option is set to true, it guarantees that only one process would be able to listen this channel at a time.

**Signature:**

```typescript
listen(channel: string): Promise<void>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| channel | string | channel name to listen |


**Returns:**

Promise<void>

