bigbluebutton-Github/bigbluebutton-html5/imports/api/connection-status/index.js

14 lines
329 B
JavaScript
Raw Normal View History

2020-04-10 01:01:46 +08:00
import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const ConnectionStatus = new Mongo.Collection('connection-status', collectionOptions);
2020-04-10 01:01:46 +08:00
if (Meteor.isServer) {
ConnectionStatus.createIndexAsync({ meetingId: 1, userId: 1 });
2020-04-10 01:01:46 +08:00
}
export default ConnectionStatus;