|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
/* global localServerPort: false */
|
|
|
|
|
/* global lokiMessageAPI: false */
|
|
|
|
|
/* global lokiP2pAPI: false */
|
|
|
|
|
/* global lokiRssAPI: false */
|
|
|
|
|
/* global feeds: false */
|
|
|
|
|
|
|
|
|
|
/* eslint-disable more/no-then */
|
|
|
|
|
/* eslint-disable no-unreachable */
|
|
|
|
@ -78,7 +78,10 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
this.httpPollingResource.pollServer();
|
|
|
|
|
localLokiServer.on('message', this.handleP2pMessage.bind(this));
|
|
|
|
|
lokiPublicChatAPI.on('publicMessage', this.handlePublicMessage.bind(this));
|
|
|
|
|
lokiRssAPI.on('rssMessage', this.handlePublicMessage.bind(this));
|
|
|
|
|
// set up pollers for any RSS feeds
|
|
|
|
|
feeds.forEach(feed => {
|
|
|
|
|
feed.on('rssMessage', this.handleRssMessage.bind(this));
|
|
|
|
|
})
|
|
|
|
|
this.startLocalServer();
|
|
|
|
|
|
|
|
|
|
// TODO: Rework this socket stuff to work with online messaging
|
|
|
|
|