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/es2016/bundle.js.map
|
||||||
/src/backbone/bundle.js.map
|
/src/backbone/bundle.js.map
|
||||||
|
|
||||||
!/db/twitter.db
|
/db/twitter.db
|
||||||
|
@ -38,6 +38,7 @@ function buildList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startTweetUpdates() {
|
function startTweetUpdates() {
|
||||||
|
logger.warn('StartTweetUpdates');
|
||||||
intervalID = setInterval(() => {
|
intervalID = setInterval(() => {
|
||||||
doTweetUpdates();
|
doTweetUpdates();
|
||||||
}, 10000);
|
}, 10000);
|
||||||
@ -72,5 +73,8 @@ exports.updates = (newEmitter) => {
|
|||||||
logger.warn('Setting events');
|
logger.warn('Setting events');
|
||||||
eventEmitter = newEmitter;
|
eventEmitter = newEmitter;
|
||||||
buildList();
|
buildList();
|
||||||
startTweetUpdates();
|
|
||||||
|
setInterval(() => {
|
||||||
|
startTweetUpdates();
|
||||||
|
}, 30000);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user