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

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

Constructs and returns hash string for a given set of processId, channel and payload.

**Signature:**

```typescript
export declare function signature(processId: number, channel: string, payload: any): string;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| processId | number | PostgreSQL backend pid of the publishing connection |
| channel | string | channel the message was published on |
| payload | any | message body; hashed by content, so two identical payloads on one channel produce the same signature |


**Returns:**

string

