# IMessageQueueConnection interface · @imqueue/core

Source: https://imqueue.org/api/core/latest/core.imessagequeueconnection/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/core 3.3.2 — generated reference, not hand-written

A single queue-host endpoint: where to connect and, optionally, how to authenticate.

**Signature:**

```typescript
export interface IMessageQueueConnection extends IMessageQueueAuthConnection 
```
**Extends:** [IMessageQueueAuthConnection](https://imqueue.org/api/core/latest/core.imessagequeueauthconnection/)

## Remarks

Used both as the element type of [IMQOptions.cluster](https://imqueue.org/api/core/latest/core.imqoptions.cluster/) and, through `Partial`, as the connection part of [IMQOptions](https://imqueue.org/api/core/latest/core.imqoptions/) itself — where it defaults to `localhost:6379` without authentication.

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [host](https://imqueue.org/api/core/latest/core.imessagequeueconnection.host/) |  | string | Host name or IP address of the queue host. Defaults to `localhost`. |
| [id?](https://imqueue.org/api/core/latest/core.imessagequeueconnection.id/) |  | string | _(Optional)_ Identifier used to match this endpoint against cluster membership. Meaningful on `cluster` entries only, not at the top level of [IMQOptions](https://imqueue.org/api/core/latest/core.imqoptions/). |
| [port](https://imqueue.org/api/core/latest/core.imessagequeueconnection.port/) |  | number | TCP port of the queue host. Defaults to `6379`. |

