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

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

Sets `'notify'` event handler, which fired only one single time

**Signature:**

```typescript
once(event: 'notify', listener: typeof notify): this;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| event | 'notify' | `'notify'` — this instance published a notification |
| listener | typeof notify | handler invoked when this instance published a notification. Fires at most once. |


**Returns:**

this

