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

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

`'close'` event, occurs each time connection closed. Differs from `'end'` event, because `'end'` event may occur many times during re-connectable connection process, but `'close'` event states that connection was safely programmatically closed and further re-connections won't happen.

**Signature:**

```typescript
export declare function close(): void;
```
**Returns:**

void

