From 009b6f1b08ca638d54e6cbb5c41d0b7e9e0ca52f Mon Sep 17 00:00:00 2001 From: ericek111 Date: Fri, 20 Mar 2026 10:26:22 +0100 Subject: [PATCH] minor: comments --- src/N1mmServer.js | 2 +- src/RotClient.js | 1 - src/RotRouter.js | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/N1mmServer.js b/src/N1mmServer.js index dcee795..cabf5e8 100644 --- a/src/N1mmServer.js +++ b/src/N1mmServer.js @@ -5,7 +5,7 @@ export default class N1mmServer { constructor() { this.xmlParser = new XMLParser(); - this.turnHandlers = []; // TurnEventHandler + this.turnHandlers = []; // TurnMessageHandler[] } start() { diff --git a/src/RotClient.js b/src/RotClient.js index 703f168..07cf968 100644 --- a/src/RotClient.js +++ b/src/RotClient.js @@ -9,7 +9,6 @@ export default class RotClient { this.label = label; this.ip = clientConfig.ip; this.bands = clientConfig.bands; - this.startOffset = null; this.cachedData = null this.dynamicData = null; this.dynamicHandlers = []; diff --git a/src/RotRouter.js b/src/RotRouter.js index 0bb61c2..e221c24 100644 --- a/src/RotRouter.js +++ b/src/RotRouter.js @@ -1,11 +1,11 @@ import RotClient from './RotClient.js'; import fs from 'node:fs'; -export default class RotRouter { // implements TurnEventHandler +export default class RotRouter { // implements TurnMessageHandler constructor() { this.clients = {}; this.loadConfig(); - this.routerDataHandlers = []; + this.routerDataHandlers = []; // array of callbacks accepting (RotClient, data) } @@ -33,7 +33,7 @@ export default class RotRouter { // implements TurnEventHandler client.turn(msg.az); } - onRotatorData(handler) { // (RotClient, data) + onRotatorData(handler) { // will call with (RotClient, data) this.routerDataHandlers.push(handler); }