Files
sx-fc/app/channels/second_display_view_channel.rb
2018-03-11 16:14:44 +06:30

11 lines
233 B
Ruby

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