combine channels for meeting updates

This commit is contained in:
Zachary Chai
2016-11-07 11:19:54 -05:00
parent b8c876443f
commit 58d5e7e6c5
4 changed files with 18 additions and 12 deletions

View File

@ -0,0 +1,5 @@
class MeetingUpdatesChannel < ApplicationCable::Channel
def subscribed
stream_from "#{params[:username]}_meeting_updates_channel"
end
end

View File

@ -1,5 +0,0 @@
class ModeratorJoinsChannel < ApplicationCable::Channel
def subscribed
stream_from "moderator_#{params[:username]}_join_channel"
end
end