renamed "messagingService" to "ws"

This commit is contained in:
zadam
2019-08-26 20:21:43 +02:00
parent d039a5f24e
commit 36c87b7fa0
21 changed files with 52 additions and 52 deletions

View File

@@ -4,7 +4,7 @@ const tarExportService = require('../../services/export/tar');
const singleExportService = require('../../services/export/single');
const opmlExportService = require('../../services/export/opml');
const repository = require("../../services/repository");
const messagingService = require("../../services/messaging");
const ws = require("../../services/ws.js");
const log = require("../../services/log");
class ExportContext {
@@ -23,7 +23,7 @@ class ExportContext {
if (Date.now() - this.lastSentCountTs >= 500) {
this.lastSentCountTs = Date.now();
await messagingService.sendMessageToAllClients({
await ws.sendMessageToAllClients({
exportId: this.exportId,
type: 'export-progress-count',
progressCount: this.progressCount
@@ -32,7 +32,7 @@ class ExportContext {
}
async exportFinished() {
await messagingService.sendMessageToAllClients({
await ws.sendMessageToAllClients({
exportId: this.exportId,
type: 'export-finished'
});
@@ -40,7 +40,7 @@ class ExportContext {
// must remaing non-static
async reportError(message) {
await messagingService.sendMessageToAllClients({
await ws.sendMessageToAllClients({
type: 'export-error',
message: message
});