init push - laying out the project
This commit is contained in:
4
portal/app/channels/application_cable/channel.rb
Normal file
4
portal/app/channels/application_cable/channel.rb
Normal file
@ -0,0 +1,4 @@
|
||||
module ApplicationCable
|
||||
class Channel < ActionCable::Channel::Base
|
||||
end
|
||||
end
|
4
portal/app/channels/application_cable/connection.rb
Normal file
4
portal/app/channels/application_cable/connection.rb
Normal file
@ -0,0 +1,4 @@
|
||||
module ApplicationCable
|
||||
class Connection < ActionCable::Connection::Base
|
||||
end
|
||||
end
|
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