# ClusterManager.init() method · @imqueue/core

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

Registers a cluster's membership callbacks with this manager and returns an identified handle.

**Signature:**

```typescript
init(cluster: ICluster): InitializedCluster;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| cluster | [ICluster](https://imqueue.org/api/core/latest/core.icluster/) | the membership callbacks to feed |


**Returns:**

[InitializedCluster](https://imqueue.org/api/core/latest/core.initializedcluster/)

the registered cluster, carrying the id that [ClusterManager.remove()](https://imqueue.org/api/core/latest/core.clustermanager.remove/) accepts

## Remarks

Retain the returned handle (or its `id`) — it is the only thing `remove()` accepts. Registering does not start discovery: an implementation may already be listening from construction, in which case events that arrive before this call are discarded.

