bigbluebutton-Github/bigbluebutton-html5/imports/startup/server/index.js

17 lines
529 B
JavaScript
Raw Normal View History

2016-05-05 02:29:43 +08:00
import { logger } from '/imports/startup/server/logger';
import '/server/server';
import { RedisPubSub } from '/imports/startup/server/RedisPubSub';
2016-05-05 02:29:43 +08:00
import { EventQueue } from '/imports/startup/server/EventQueue';
import { clearCollections } from '/imports/startup/server/helpers';
2016-05-05 02:29:43 +08:00
2016-05-05 05:49:01 +08:00
Meteor.startup(function () {
clearCollections();
logger.info('server start');
});
export const myQueue = new EventQueue();
export const eventEmitter = new (Npm.require('events').EventEmitter);
export const redisPubSub = new RedisPubSub();