forked from External/greenlight
wait for moderator with action cable
This commit is contained in:
5
app/channels/moderator_joins_channel.rb
Normal file
5
app/channels/moderator_joins_channel.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class ModeratorJoinsChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "moderator_#{params[:username]}_join_channel"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user