update second display

This commit is contained in:
Aung Myo
2018-03-11 16:14:44 +06:30
parent 1f4ea558c6
commit 4ea2337fae
24 changed files with 947 additions and 13 deletions

View 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

View 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