Skip to content

Commit 4ac32d0

Browse files
authored
Merge pull request #442 from josephdadams/fix-vmix-emulator
2 parents 32518bd + c97a24c commit 4ac32d0

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Diff for: src/_modules/TSL.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { Device } from "../_models/Device";
1111
export class TSLListenerProvider extends ListenerProvider {
1212
public tsl_clients: TSLClient[] = [];
1313

14-
constructor() {
15-
super();
14+
public start() {
15+
logger('Starting TSL Listener Service.', 'info-quiet');
1616
logger(`Initiating ${currentConfig.tsl_clients.length} TSL Client Connections.`, 'info');
1717
for (const tslClient of currentConfig.tsl_clients) {
1818
logger(`TSL Client: ${tslClient.ip}:${tslClient.port} (${tslClient.transport})`, 'info-quiet');

Diff for: src/_modules/VMix.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export class VMixEmulator extends ListenerProvider {
1515
public vmix_clients = []; // Clients currently connected to the VMix Emulator
1616
public vmix_client_data = []; // array of connected Vmix clients
1717

18-
public startVMixEmulator() {
18+
public start() {
19+
logger('Starting VMix Emulation Service.', 'info-quiet');
1920
this.server = net.createServer();
2021

2122
this.server.on('connection', (socket) => this.handleConnection(socket));

Diff for: src/_modules/_ListenerProvider.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EventEmitter } from "events";
22

3-
export class ListenerProvider extends EventEmitter {
4-
3+
export abstract class ListenerProvider extends EventEmitter {
4+
public start(): void {}
55
}

Diff for: src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ function initialSetup() {
915915

916916
logger('Socket.IO Setup Complete.', 'info-quiet');
917917

918-
logger('Starting VMix Emulation Service.', 'info-quiet');
918+
logger('Starting Listener Providers.', 'info-quiet');
919919

920920
vMixEmulator = new VMixEmulator();
921921
tslListenerProvider = new TSLListenerProvider();
@@ -927,6 +927,7 @@ function initialSetup() {
927927
UpdateSockets(type);
928928
UpdateCloud(type);
929929
});
930+
provider.start();
930931
}
931932

932933
if (cloud_destinations.length > 0) {

0 commit comments

Comments
 (0)