mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d2571e560c
and update ActionCable guide to describe exception handling usage # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Your branch is behind 'origin/master' by 5 commits, and can be fast-forwarded. # # Changes to be committed: # modified: actioncable/CHANGELOG.md # modified: actioncable/lib/action_cable/connection/base.rb # modified: actioncable/lib/action_cable/connection/subscriptions.rb # modified: actioncable/test/connection/subscriptions_test.rb # modified: guides/source/action_cable_overview.md #
38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
* `ActionCable::Connection::Base` now allows intercepting unhandled exceptions
|
|
with `rescue_from` before they are logged, which is useful for error reporting
|
|
tools and other integrations.
|
|
|
|
*Justin Talbott*
|
|
|
|
* Add `ActionCable::Channel#stream_or_reject_for` to stream if record is present, otherwise reject the connection
|
|
|
|
*Atul Bhosale*
|
|
|
|
* Add `ActionCable::Channel#stop_stream_from` and `#stop_stream_for` to unsubscribe from a specific stream.
|
|
|
|
*Zhang Kang*
|
|
|
|
* Add PostgreSQL subscription connection identificator.
|
|
|
|
Now you can distinguish Action Cable PostgreSQL subscription connections among others.
|
|
Also, you can set custom `id` in `cable.yml` configuration.
|
|
|
|
```sql
|
|
SELECT application_name FROM pg_stat_activity;
|
|
/*
|
|
application_name
|
|
------------------------
|
|
psql
|
|
ActionCable-PID-42
|
|
(2 rows)
|
|
*/
|
|
```
|
|
|
|
*Sergey Ponomarev*
|
|
|
|
* Subscription confirmations and rejections are now logged at the `DEBUG` level instead of `INFO`.
|
|
|
|
*DHH*
|
|
|
|
|
|
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actioncable/CHANGELOG.md) for previous changes.
|