From 1e1e47aefec77afdb9d1dc82ed3bcf872af91238 Mon Sep 17 00:00:00 2001 From: Martin Karkowski Date: Fri, 12 Mar 2021 08:57:02 +0100 Subject: [PATCH] Fixing Layers --- lib/communication/IoSocketClient.ts | 4 +--- lib/communication/IoSocketServer.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/communication/IoSocketClient.ts b/lib/communication/IoSocketClient.ts index 3cb5aec..3c79519 100644 --- a/lib/communication/IoSocketClient.ts +++ b/lib/communication/IoSocketClient.ts @@ -55,15 +55,13 @@ export class IoSocketClient extends Bridge implements ICommunicationInterface { this.addLayer( new DebuggedEventLayer( new EventEmitter(), - "individual", - "individual", this._logger ), false, true ); this.addLayer( - new DebuggedEventLayer(socket as any, "individual", "individual", this._logger) + new DebuggedEventLayer(socket as any, this._logger) ); socket.on("connect", (...args) => { diff --git a/lib/communication/IoSocketServer.ts b/lib/communication/IoSocketServer.ts index 70aaa3d..de63fa3 100644 --- a/lib/communication/IoSocketServer.ts +++ b/lib/communication/IoSocketServer.ts @@ -46,7 +46,7 @@ export class IoSocketServer extends Bridge { // Add a default Event-Layer // Perhaps that can be removed. - this.addLayer(new DebuggedEventLayer(new EventEmitter(), "individual","individual",null),false, true); + this.addLayer(new DebuggedEventLayer(new EventEmitter(), null),false, true); this._logger.info( "waiting for connection. Listening on port: " + port.toString() @@ -61,7 +61,7 @@ export class IoSocketServer extends Bridge { _this._sockets.add(client); // Add the socket as new layer: - const _layer = new DebuggedEventLayer(client, "individual","individual", getNopeLogger("io-client-" + client.id, "info")); + const _layer = new DebuggedEventLayer(client, getNopeLogger("io-client-" + client.id, "info")); _this.addLayer(_layer, true); // Subscribe to Loosing connection: