> ## Documentation Index
> Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# duplicate-id

> A WebSocket message uses the id of a subscription that is still open.

| Status | Title |
| - | - |
| `409` | This id is in use |

## What it means

On the [WebSocket](https://developer.plugchoice.com/v4/live-updates.md), the `id` of a subscription names it until it ends, and every message of the subscription carries it. You sent `subscribe`, `authenticate` or `ping` with the id of a subscription that is still open. The server did nothing with the message, and the connection stays open.

## What to do

Give each request its own id. To reuse an id, send `unsubscribe` with it first, and wait for `unsubscribed`.

## Example

```json theme={null}
{
  "type": "error",
  "id": "garage",
  "data": {
    "type": "https://developer.plugchoice.com/api/errors/duplicate-id",
    "title": "This id is in use",
    "status": 409,
    "code": "duplicate-id",
    "detail": "It names a subscription that is open: use another id, or unsubscribe first."
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.