class ExchangeAccountChannel < ApplicationCable::Channel def subscribed stream_from "exchange_account:#{params[:id]}" end def unsubscribed # Any cleanup needed when channel is unsubscribed end end