Features
-
JWT functionality is available without additional dependencies.
No need to install anycable-rails-jwt anymore.
-
Signed streams support.
Added
#signed_stream_name
helper andAnyCable::Rails.signed_stream_name
helper to generate signed streams. -
Added
websocket_url
parameter to provide a WS server address for clients.This new parameter automatically updates the
config.action_cable.url
to provide the WS server information to clients via#action_cable_meta_tag
(or#action_cable_with_jwt_meta_tag
) helpers. Thus, all you need to point your clients to AnyCable is configure thewebsocket_url
(orANYCABLE_WEBSOCKET_URL
) value, no code changes required. -
Allow specifying the whispering stream via
#stream_from(..., whisper: true)
.You can use specify the stream to use for whispering (client-initiated broadcasts) by adding
whisper: true
to the#stream_from
(or#stream_for
) method call. -
Broadcasting to objects.
Extended
ActionCable.server.broadcast
to accept not only strings but objects (similar toChannel.broadcast_to(...)
).See docs.
-
Extracted
rails g anycable:bin
fromrails g anycable:setup
.This generator creates a
bin/anycable-go
script to run (and install) AnyCable server locally.