# IMQClient.unsubscribe() method · @imqueue/rpc

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

Stops receiving service events: unsubscribes the channel, discards every handler registered through [IMQClient.subscribe()](https://imqueue.org/api/rpc/latest/rpc.imqclient.subscribe/), and closes the dedicated subscription connection.

**Signature:**

```typescript
unsubscribe(): Promise<void>;
```
**Returns:**

Promise<void>

## Remarks

Safe when not subscribed, and it does not affect remote calls. [IMQClient.destroy()](https://imqueue.org/api/rpc/latest/rpc.imqclient.destroy/) performs it automatically; afterwards [IMQClient.subscribe()](https://imqueue.org/api/rpc/latest/rpc.imqclient.subscribe/) can be used again with a fresh connection.

