2016-05-05 02:29:43 +08:00
|
|
|
import { logger } from '/imports/startup/server/logger';
|
2016-05-05 01:00:57 +08:00
|
|
|
|
2016-05-05 02:29:43 +08:00
|
|
|
import { RedisPubSub } from '/imports/startup/server/redispubsub2';
|
|
|
|
import { EventQueue } from '/imports/startup/server/EventQueue';
|
|
|
|
|
|
|
|
import '/server/server';
|
2016-05-05 01:00:57 +08:00
|
|
|
|
|
|
|
export const myQueue = new EventQueue();
|
|
|
|
|
|
|
|
logger.info('server start');
|
|
|
|
|
|
|
|
export const eventEmitter = new (Npm.require('events').EventEmitter);
|
|
|
|
|
|
|
|
export const redisPubSub = new RedisPubSub();
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
/*
|
|
|
|
|
|
|
|
-clear collections somewhere
|
|
|
|
|
|
|
|
*/
|