add out of stock action cable
This commit is contained in:
@@ -8,16 +8,16 @@ module ApplicationCable
|
||||
|
||||
# Order Queue Station Channel
|
||||
class OrderQueueStationChannel < ActionCable::Channel::Base
|
||||
|
||||
|
||||
end
|
||||
|
||||
# Order Queue Station Channel
|
||||
class BillChannel < ActionCable::Channel::Base
|
||||
|
||||
|
||||
end
|
||||
|
||||
# Call Waiter Channel
|
||||
class CallWaiterChannel < ActionCable::Channel::Base
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
10
app/channels/out_of_stock_channel.rb
Normal file
10
app/channels/out_of_stock_channel.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class OutOfStockChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "out_of_stock_channel"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
stop_all_streams
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user