Moved websocket handling to its own file and cleaned up index.ts

This commit is contained in:
softsimon
2020-02-26 17:49:53 +07:00
parent ff92ae43a5
commit 7fbc6f1461
7 changed files with 231 additions and 188 deletions

View File

@@ -10,6 +10,7 @@ class FiatConversion {
constructor() { }
public startService() {
console.log('Starting currency rates service');
setInterval(this.updateCurrency.bind(this), 1000 * 60 * 60);
this.updateCurrency();
}