init push - laying out the project
This commit is contained in:
9
portal/app/channels/exchange_account_channel.rb
Normal file
9
portal/app/channels/exchange_account_channel.rb
Normal file
@ -0,0 +1,9 @@
|
||||
class ExchangeAccountChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "exchange_account:#{params[:id]}"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user