2020-04-10 01:01:46 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
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) {
|
2023-03-10 20:06:13 +08:00
|
|
|
ConnectionStatus.createIndexAsync({ meetingId: 1, userId: 1 });
|
2020-04-10 01:01:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default ConnectionStatus;
|