File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import { Device } from "../_models/Device";
11
11
export class TSLListenerProvider extends ListenerProvider {
12
12
public tsl_clients : TSLClient [ ] = [ ] ;
13
13
14
- constructor ( ) {
15
- super ( ) ;
14
+ public start ( ) {
15
+ logger ( 'Starting TSL Listener Service.' , 'info-quiet' ) ;
16
16
logger ( `Initiating ${ currentConfig . tsl_clients . length } TSL Client Connections.` , 'info' ) ;
17
17
for ( const tslClient of currentConfig . tsl_clients ) {
18
18
logger ( `TSL Client: ${ tslClient . ip } :${ tslClient . port } (${ tslClient . transport } )` , 'info-quiet' ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ export class VMixEmulator extends ListenerProvider {
15
15
public vmix_clients = [ ] ; // Clients currently connected to the VMix Emulator
16
16
public vmix_client_data = [ ] ; // array of connected Vmix clients
17
17
18
- public startVMixEmulator ( ) {
18
+ public start ( ) {
19
+ logger ( 'Starting VMix Emulation Service.' , 'info-quiet' ) ;
19
20
this . server = net . createServer ( ) ;
20
21
21
22
this . server . on ( 'connection' , ( socket ) => this . handleConnection ( socket ) ) ;
Original file line number Diff line number Diff line change 1
1
import { EventEmitter } from "events" ;
2
2
3
- export class ListenerProvider extends EventEmitter {
4
-
3
+ export abstract class ListenerProvider extends EventEmitter {
4
+ public start ( ) : void { }
5
5
}
Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ function initialSetup() {
915
915
916
916
logger ( 'Socket.IO Setup Complete.' , 'info-quiet' ) ;
917
917
918
- logger ( 'Starting VMix Emulation Service .' , 'info-quiet' ) ;
918
+ logger ( 'Starting Listener Providers .' , 'info-quiet' ) ;
919
919
920
920
vMixEmulator = new VMixEmulator ( ) ;
921
921
tslListenerProvider = new TSLListenerProvider ( ) ;
@@ -927,6 +927,7 @@ function initialSetup() {
927
927
UpdateSockets ( type ) ;
928
928
UpdateCloud ( type ) ;
929
929
} ) ;
930
+ provider . start ( ) ;
930
931
}
931
932
932
933
if ( cloud_destinations . length > 0 ) {
You can’t perform that action at this time.
0 commit comments