17 lines
355 B
JavaScript
17 lines
355 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
connection: null,
|
|
} : {};
|
|
|
|
const Screenshare = new Mongo.Collection('screenshare', collectionOptions);
|
|
|
|
if (Meteor.isServer) {
|
|
// types of queries for the screenshare:
|
|
// 1. meetingId
|
|
|
|
Screenshare._ensureIndex({ meetingId: 1 });
|
|
}
|
|
|
|
export default Screenshare;
|