Skip to content

Commit d305cd6

Browse files
committed
docs: add AMQPSession entry to CHANGELOG unreleased section
1 parent 6a21f51 commit d305cd6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- `AMQPSession` — high-level client with automatic reconnection and consumer recovery ([#185](https://github.com/cloudamqp/amqp-client.js/pull/185))
13+
- `AMQPSession.connect(url, options?)` factory: picks TCP or WebSocket transport from the URL scheme
14+
- Exponential backoff with configurable `reconnectInterval`, `maxReconnectInterval`, `backoffMultiplier`, and `maxRetries`
15+
- `session.subscribe(queue, params, callback?, options?)` — returns an `AMQPSubscription` (or `AMQPGeneratorSubscription` for async-iterable usage) that survives reconnections
16+
- `session.onconnect` / `session.onfailed` lifecycle hooks
17+
- `session.stop()` — cancels reconnection, clears all subscriptions, and closes the connection
18+
- `AMQPSubscription` — stable handle across reconnections: exposes `channel`, `consumerTag`, and `cancel()`
19+
- `AMQPGeneratorSubscription` — extends `AMQPSubscription` with `AsyncIterable<AMQPMessage>` support; bridges the iterator across reconnects
20+
- `ondisconnect` hook on `AMQPBaseClient` (TCP and WebSocket) — fires when the connection drops
21+
1022
## [3.4.1] - 2025-11-28
1123

1224
### Fixed

0 commit comments

Comments
 (0)