forked from External/greenlight
multi meeting rooms
This commit is contained in:
@ -19,15 +19,15 @@ class EndMeetingJob < ApplicationJob
|
||||
|
||||
queue_as :default
|
||||
|
||||
def perform(room)
|
||||
def perform(room, meeting)
|
||||
tries = 0
|
||||
sleep_time = 2
|
||||
|
||||
while tries < 4
|
||||
bbb_res = bbb_get_meeting_info(room)
|
||||
bbb_res = bbb_get_meeting_info("#{room}-#{meeting}")
|
||||
|
||||
if !bbb_res[:returncode]
|
||||
ActionCable.server.broadcast "#{room}_meeting_updates_channel",
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
||||
action: 'meeting_ended'
|
||||
break
|
||||
end
|
||||
|
@ -17,8 +17,8 @@
|
||||
class JoinMeetingJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(room)
|
||||
ActionCable.server.broadcast "#{room}_meeting_updates_channel",
|
||||
def perform(room, meeting)
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
||||
action: 'moderator_joined',
|
||||
moderator: 'joined'
|
||||
end
|
||||
|
@ -17,8 +17,8 @@
|
||||
class NotifyUserWaitingJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(room, user)
|
||||
ActionCable.server.broadcast "#{room}_meeting_updates_channel",
|
||||
def perform(room, meeting, user)
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
||||
{ action: 'user_waiting', user: user }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user