Browse Source

more component management refactoring

pull/1/head
Rob Colbert 3 years ago
parent
commit
42a98a49a2
  1. 4
      lib/client/js/dtp-app.js
  2. 5
      lib/client/js/dtp-display-engine.js
  3. 5
      lib/client/js/dtp-socket.js

4
lib/client/js/dtp-app.js

@ -10,9 +10,9 @@ import DtpDisplayEngine from './dtp-display-engine';
export default class DtpApp {
constructor (appName, user) {
constructor (component, user) {
this.user = user;
this.log = new DtpLog(appName);
this.log = new DtpLog(component);
this.log.debug('constructor', 'creating DisplayEngine instance');
this.displayEngine = new DtpDisplayEngine();

5
lib/client/js/dtp-display-engine.js

@ -4,14 +4,15 @@
'use strict';
const DTP_COMPONENT = { name: 'Display Engine', slug: 'display-engine' };
import DtpLog from './dtp-log.js';
export default class DtpDisplayEngine {
constructor ( ) {
this.processors = { };
this.log = new DtpLog('DtpDisplayEngine');
this.log.debug('constructor', 'DTP Display Engine instance created');
this.log = new DtpLog(DTP_COMPONENT);
}
/**

5
lib/client/js/dtp-socket.js

@ -4,6 +4,8 @@
'use strict';
const DTP_COMPONENT = { name: 'Socket', slug: 'socket' };
window.dtp = window.dtp || { };
import DtpWebLog from './dtp-log.js';
@ -14,8 +16,7 @@ export default class DtpWebSocket {
this.isConnected = false;
this.isAuthenticated = false;
this.joinedChannels = { };
this.log = new DtpWebLog('DtpWebSocket');
this.log = new DtpWebLog(DTP_COMPONENT);
}
async connect (options) {

Loading…
Cancel
Save