Merge branch 'r-1902001-01' into foodcourt
This commit is contained in:
10
app/channels/print_channel.rb
Normal file
10
app/channels/print_channel.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class PrintChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "print_channel_#{params[:shop_code]}"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
stop_all_streams
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user