bigbluebutton-Github/bigbluebutton-html5/client/collection-mirror-initializer.js

28 lines
1.1 KiB
JavaScript
Raw Normal View History

import AbstractCollection from '/imports/ui/services/LocalCollectionSynchronizer/LocalCollectionSynchronizer';
// Collections
import Screenshare from '/imports/api/screenshare';
import Breakouts from '/imports/api/breakouts';
2023-11-14 03:42:22 +08:00
import Meetings, {
2024-04-23 22:58:33 +08:00
MeetingTimeRemaining, Notifications,
2023-11-14 03:42:22 +08:00
} from '/imports/api/meetings';
2023-11-30 22:20:12 +08:00
import Users from '/imports/api/users';
// Custom Publishers
export const localCollectionRegistry = {
localScreenshareSync: new AbstractCollection(Screenshare, Screenshare),
localMeetingTimeRemainingSync: new AbstractCollection(MeetingTimeRemaining, MeetingTimeRemaining),
localBreakoutsSync: new AbstractCollection(Breakouts, Breakouts),
localMeetingsSync: new AbstractCollection(Meetings, Meetings),
localUsersSync: new AbstractCollection(Users, Users),
localNotificationsSync: new AbstractCollection(Notifications, Notifications),
};
const collectionMirrorInitializer = () => {
Object.values(localCollectionRegistry).forEach((localCollection) => {
localCollection.setupListeners();
});
};
export default collectionMirrorInitializer;