2017-10-12 05:52:19 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
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._ensureIndex({ meetingId: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Screenshare;
|