Skip to content

[Cable] Support stream_for/broadcast_to#207

Merged
rsamoilov merged 2 commits intomainfrom
cable-streams
Feb 11, 2026
Merged

[Cable] Support stream_for/broadcast_to#207
rsamoilov merged 2 commits intomainfrom
cable-streams

Conversation

@rsamoilov
Copy link
Member

This pull request introduces support for channel-local streams in the Rage::Cable::Channel class, allowing channels to broadcast and subscribe to streams scoped to specific objects or identifiers.

Example:

class NotificationsChannel < Rage::Cable::Channel
  def subscribed
    stream_for current_user
  end
end

NotificationsChannel.broadcast_to(current_user, { message: "You have a new notification!" })

@rsamoilov rsamoilov merged commit 98acc41 into main Feb 11, 2026
12 checks passed
@rsamoilov rsamoilov deleted the cable-streams branch February 11, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant