init push - laying out the project
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
module ApplicationCable
|
||||
class Channel < ActionCable::Channel::Base
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,4 @@
|
||||
module ApplicationCable
|
||||
class Connection < ActionCable::Connection::Base
|
||||
end
|
||||
end
|
||||
@@ -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