add bill channel for req bill
This commit is contained in:
@@ -11,4 +11,8 @@ module ApplicationCable
|
||||
|
||||
end
|
||||
|
||||
# Order Queue Station Channel
|
||||
class BillChannel < ActionCable::Channel::Base
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
10
app/channels/bill_channel.rb
Normal file
10
app/channels/bill_channel.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class BillChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "bill_channel"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
stop_all_streams
|
||||
end
|
||||
end
|
||||
@@ -7,5 +7,4 @@ class OrderChannel < ApplicationCable::Channel
|
||||
stop_all_streams
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user