Skip to content

1.5.0

Latest
Compare
Choose a tag to compare
@palkan palkan released this 02 Apr 00:05
· 32 commits to master since this release

Features

  • JWT functionality is available without additional dependencies.

    No need to install anycable-rails-jwt anymore.

  • Signed streams support.

    Added #signed_stream_name helper and AnyCable::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 the websocket_url (or ANYCABLE_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 to Channel.broadcast_to(...)).

    See docs.

  • Extracted rails g anycable:bin from rails g anycable:setup.

    This generator creates a bin/anycable-go script to run (and install) AnyCable server locally.