Skip to content

Instantly share code, notes, and snippets.

@breim
Created August 9, 2018 00:04
Show Gist options
  • Save breim/2b86ed05840da6655c577a3b4b2b9ada to your computer and use it in GitHub Desktop.
Save breim/2b86ed05840da6655c577a3b4b2b9ada to your computer and use it in GitHub Desktop.
class WebNotificationsChannel < ApplicationCable::Channel
def subscribed
stream_from "web_notifications_channel"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment