1.0.0
See the project's release notes for more information on all AnyCable libraries.
Please, checkout the upgrade notes to learn how to migrate from 0.6 to 1.0.
Features
-
Added interactive
rails g anycable:setup
command for initial AnyCable configuration. -
Added
request
support to channels.
Now you can access underlying HTTP request data in channels, too.
- Added Rack middleware support (incl. out-of-the-box Rails sessions support).
You can enhance request object by passing it through a custom middleware chain (e.g., when using Warden for authentication). By default, we include Rails session middleware, which makes request.session
available in AnyCable without any hacks.
See documentation.
- Added
state_attr_accessor
to persist channels state.
See documentation.
-
Added support for
ActionCable.server.remote_connections.where(...).disconnect
. -
Added compatibility with Rails 6.1.
Including type: :disconnect
messages, Connection.rescue_from
, stop_stream_from
.
Changes
- Using
anycable-go
v1.x is required.