Skip to content

Commit 0915257

Browse files
authored
Add CHANGELOG entry for rails#45738 [ci-skip] (rails#46056)
1 parent af38118 commit 0915257

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

actioncable/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
* The `connected()` callback can now take a `{reconnected}` parameter to differentiate
2+
connections from reconnections.
3+
4+
```js
5+
import consumer from "./consumer"
6+
7+
consumer.subscriptions.create("ExampleChannel", {
8+
connected({reconnected}) {
9+
if (reconnected) {
10+
...
11+
} else {
12+
...
13+
}
14+
}
15+
})
16+
```
17+
18+
*Mansa Keïta*
19+
120
* The Redis adapter is now compatible with redis-rb 5.0
221

322
Compatibility with redis-rb 3.x was dropped.

0 commit comments

Comments
 (0)