Fixes and tidying up the server side of the sockets
This commit is contained in:
parent
204d995a4a
commit
a8b3e27038
2
.gitignore
vendored
2
.gitignore
vendored
@ -151,4 +151,4 @@ fabric.properties
|
||||
/src/es2016/bundle.js.map
|
||||
/src/backbone/bundle.js.map
|
||||
|
||||
!/db/twitter.db
|
||||
/db/twitter.db
|
||||
|
@ -38,6 +38,7 @@ function buildList() {
|
||||
}
|
||||
|
||||
function startTweetUpdates() {
|
||||
logger.warn('StartTweetUpdates');
|
||||
intervalID = setInterval(() => {
|
||||
doTweetUpdates();
|
||||
}, 10000);
|
||||
@ -72,5 +73,8 @@ exports.updates = (newEmitter) => {
|
||||
logger.warn('Setting events');
|
||||
eventEmitter = newEmitter;
|
||||
buildList();
|
||||
startTweetUpdates();
|
||||
|
||||
setInterval(() => {
|
||||
startTweetUpdates();
|
||||
}, 30000);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user