bigbluebutton-Github/labs/meteor-client/server/publish.coffee

11 lines
376 B
CoffeeScript
Raw Normal View History

# Publish only the users that are in the particular meetingId
# On the client side we pass the meetingId parameter
Meteor.publish 'users', (meetingId) ->
2014-06-25 02:20:18 +08:00
Meteor.Users.find({meetingId: meetingId})
Meteor.publish 'chat', (meetingId) ->
Meteor.Chat.find({meetingId: meetingId})
Meteor.publish 'shapes', (meetingId) ->
Meteor.Shapes.find({meetingId: meetingId})