bigbluebutton-Github/bigbluebutton-html5/imports/api/screenshare/index.js

17 lines
359 B
JavaScript
Raw Normal View History

2017-10-12 05:52:19 +08:00
import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const Screenshare = new Mongo.Collection('screenshare', collectionOptions);
2017-10-12 05:52:19 +08:00
if (Meteor.isServer) {
// types of queries for the screenshare:
// 1. meetingId
Screenshare.createIndexAsync({ meetingId: 1 });
2017-10-12 05:52:19 +08:00
}
export default Screenshare;