polyglot/app/channels/notifications_channel.rb

10 lines
194 B
Ruby
Raw Permalink Normal View History

class NotificationsChannel < ApplicationCable::Channel
def subscribed
stream_from "notifications"
end
def unsubscribed
# Any cleanup needed when channel is unsubscribed
end
end