# PgIpLock.(constructor) · @imqueue/pg-pubsub

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

Constructs a new instance of the `PgIpLock` class

**Signature:**

```typescript
constructor(
    channel: string, 
    options: PgIpLockOptions, 
    uniqueKey?: string | undefined);
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| channel | string | source channel name to manage locking on |
| options | PgIpLockOptions | lock instantiate options |
| uniqueKey | string \| undefined | _(Optional)_ unique key for specific message |

