update second display
This commit is contained in:
11
app/channels/second_display_channel.rb
Normal file
11
app/channels/second_display_channel.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class SecondDisplayChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "second_display_channel"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
stop_all_streams
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
|
||||
end
|
||||
11
app/channels/second_display_view_channel.rb
Normal file
11
app/channels/second_display_view_channel.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class SecondDisplayViewChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "second_display_view_channel"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
stop_all_streams
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user