mos-connection
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.0.1](https://github.com/nrkno/tv-automation-mos-connection/compare/1.0.0...1.0.1) (2021-04-21) | ||
### Bug Fixes | ||
* stricter handling of the debug flag, to fix minor bug; The debug flag wasn't properly passed into MosSocketServer on init. [release] ([47abd73](https://github.com/nrkno/tv-automation-mos-connection/commit/47abd73e8015dda839ec54948299f21dc6c36ae9)) | ||
## [1.0.0](https://github.com/nrkno/tv-automation-mos-connection/compare/0.9.0...1.0.0) (2021-04-16) | ||
@@ -7,0 +14,0 @@ |
@@ -37,3 +37,3 @@ /// <reference types="node" /> | ||
/** */ | ||
constructor(host: string, port: number, description: string, timeout?: number, debug?: boolean); | ||
constructor(host: string, port: number, description: string, timeout: number, debug: boolean); | ||
/** */ | ||
@@ -40,0 +40,0 @@ set autoReconnect(autoReconnect: boolean); |
@@ -17,3 +17,2 @@ "use strict"; | ||
this._reconnectAttempts = 0; | ||
this._debug = false; | ||
this._shouldBeConnected = false; | ||
@@ -36,4 +35,3 @@ this._connected = false; | ||
this._commandTimeout = timeout || 5000; | ||
if (debug) | ||
this._debug = debug; | ||
this._debug = debug !== null && debug !== void 0 ? debug : false; | ||
} | ||
@@ -40,0 +38,0 @@ /** */ |
@@ -12,3 +12,3 @@ /// <reference types="node" /> | ||
/** */ | ||
constructor(port: number, description: IncomingConnectionType, debug?: boolean); | ||
constructor(port: number, description: IncomingConnectionType, debug: boolean); | ||
dispose(sockets: Socket[]): Promise<void[]>; | ||
@@ -15,0 +15,0 @@ /** */ |
@@ -11,8 +11,6 @@ "use strict"; | ||
super(); | ||
this._debug = false; | ||
this._connectedSockets = []; | ||
this._port = port; | ||
this._portDescription = description; | ||
if (debug) | ||
this._debug = debug; | ||
this._debug = debug !== null && debug !== void 0 ? debug : false; | ||
this._socketServer = new net_1.Server(); | ||
@@ -19,0 +17,0 @@ this._socketServer.on('connection', (socket) => this._onClientConnection(socket)); |
@@ -34,3 +34,3 @@ /// <reference types="node" /> | ||
private _heartBeatsDelay; | ||
constructor(id: string, host: string, mosID: string, timeout?: number, debug?: boolean); | ||
constructor(id: string, host: string, mosID: string, timeout: number | undefined, debug: boolean); | ||
/** Create a MOS client, which talks to */ | ||
@@ -37,0 +37,0 @@ createClient(clientID: string, port: number, clientDescription: ConnectionType, useHeartbeats: boolean): void; |
@@ -11,3 +11,2 @@ "use strict"; | ||
super(); | ||
this._debug = false; | ||
this._disposed = false; | ||
@@ -22,4 +21,3 @@ this._clients = {}; | ||
this._connected = false; | ||
if (debug) | ||
this._debug = debug; | ||
this._debug = debug !== null && debug !== void 0 ? debug : false; | ||
} | ||
@@ -26,0 +24,0 @@ /** Create a MOS client, which talks to */ |
@@ -265,3 +265,3 @@ "use strict"; | ||
let initSocket = (port, portType) => { | ||
let socketServer = new mosSocketServer_1.MosSocketServer(port, portType); | ||
let socketServer = new mosSocketServer_1.MosSocketServer(port, portType, this._debug); | ||
socketServer.on(socketConnection_1.SocketServerEvent.CLIENT_CONNECTED, (e) => this._registerIncomingClient(e)); | ||
@@ -268,0 +268,0 @@ socketServer.on(socketConnection_1.SocketServerEvent.ERROR, (e) => { |
{ | ||
"name": "mos-connection", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "MOS compliant TCP/IP Socket connection.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
500037
6843