Skip to content

Support multiple isolated cable apps - #406

Merged
rsamoilov merged 3 commits into
mainfrom
cable-isolated-apps
Oct 12, 2026
Merged

rsamoilov merged 3 commits into
mainfrom
cable-isolated-apps

Conversation

@rsamoilov

Copy link
Copy Markdown
Member

Adds support for mounting multiple isolated Cable applications with independent namespaces and protocols.

Key changes:

  • Rage::Cable.application now accepts namespace and protocol options
  • Each isolated app uses its own connection class, channels, and protocol
  • Broadcasts are relayed to all registered protocols

Example usage:

Rage.routes.draw do
  # Default cable app
  mount Rage::Cable.application, at: "/cable"

  # Isolated app with custom namespace and protocol
  mount Rage::Cable.application(
    namespace: AdminCable,
    protocol: :raw_websocket_json
  ), at: "/admin_cable"
end

@rsamoilov
rsamoilov force-pushed the cable-isolated-apps branch from 773cd62 to 62f3723 Compare October 12, 2026 15:02
@rsamoilov
rsamoilov merged commit 895cfbe into main Oct 12, 2026
13 checks passed
@rsamoilov
rsamoilov deleted the cable-isolated-apps branch October 12, 2026 15:09
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