poll all feeds

pull/429/head
Ryan Tharp 6 years ago committed by Beaudan Brown
parent 962469a54c
commit 0a1655b03d

@ -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

Loading…
Cancel
Save