diff --git a/benchmark/index.ts b/benchmark/index.ts index af209581..df1a69dd 100644 --- a/benchmark/index.ts +++ b/benchmark/index.ts @@ -45,8 +45,8 @@ async function startOneUser(): Promise { } (async () => { + connectionManager.initBenchmark(); - //await connectionManager.init(); for (let userNo = 0; userNo < 40; userNo++) { startOneUser(); diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index 311f0351..4df45099 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -31,6 +31,10 @@ class ConnectionManager { } } + public initBenchmark(): void { + this.authToken = 'test'; + } + public connectToRoomSocket(): Promise { return new Promise((resolve, reject) => { const connection = new RoomConnection(this.authToken as string); diff --git a/front/src/Connexion/RoomConnection.ts b/front/src/Connexion/RoomConnection.ts index 526ce54c..f96d2eed 100644 --- a/front/src/Connexion/RoomConnection.ts +++ b/front/src/Connexion/RoomConnection.ts @@ -120,7 +120,6 @@ export class RoomConnection implements RoomConnection { } else if (message.hasWebrtcscreensharingsignaltoclientmessage()) { this.dispatch(EventMessage.WEBRTC_SCREEN_SHARING_SIGNAL, message.getWebrtcscreensharingsignaltoclientmessage()); } else if (message.hasWebrtcstartmessage()) { - console.log('Received WebRtcStartMessage'); this.dispatch(EventMessage.WEBRTC_START, message.getWebrtcstartmessage()); } else if (message.hasWebrtcdisconnectmessage()) { this.dispatch(EventMessage.WEBRTC_DISCONNECT, message.getWebrtcdisconnectmessage());