we get information about all the meetings on starting up the Meteor server

This commit is contained in:
Anton Georgiev 2014-06-26 19:54:24 +00:00
parent 86dfa841bf
commit 7b5866cf1e
3 changed files with 18 additions and 5 deletions

View File

@ -107,6 +107,19 @@ class BigBlueButtonActor(outGW: MessageOutGateway) extends Actor {
val arr : Array[String] = new Array[String](len)
set.copyToArray(arr)
for(i <- 0 until arr.length) {
println("for a meeting:" + arr(i))
//send the users
this ! (new GetUsers(arr(i), "nodeJSapp"))
//send the presentation
this ! (new GetPresentationInfo(arr(i), "nodeJSapp", "nodeJSapp"))
//send chat history
this ! (new GetChatHistoryRequest(arr(i), "nodeJSapp", "nodeJSapp"))
}
outGW.send(new GetAllMeetingsReply(arr))
}
}

View File

@ -26,7 +26,6 @@ Router.map ->
userName = urlParts[3]?.split("=")[1];
console.log "userName=" + userName
if meetingId? and userId? and authToken? and userName?
console.log "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
#Meteor.call("runRedisAndValidate", meetingId, userId, authToken)
#Meteor.call('sendMeetingInfoToClient', meetingId, userId)
else

View File

@ -92,10 +92,12 @@ class Meteor.RedisPubSub
#console.log "correlationId=" + correlationId if correlationId?
console.log "eventType=" + message.header?.name #+ "\n"
#log.debug({ pattern: pattern, channel: channel, message: message}, "Received a message from redis")
#console.log jsonMsg
console.log jsonMsg
console.log "Meteor received:\n #{jsonMsg}"
if message.header?.name is "get_all_meetings_reply"
console.log "Let's store some data for the running meetings so that
when an HTML5 client joins everything is ready!"
listOfMeetings = message.payload?.meetingIDs
# if message.header?.name is "user_joined_message"
# meetingId = message.payload.meeting_id
@ -120,4 +122,3 @@ class Meteor.RedisPubSub
console.log "err=" + err
console.log "res=" + res
)