Fixing benchmark initialization

This commit is contained in:
David Négrier 2020-09-30 12:12:24 +02:00
parent c7f5770968
commit 074398c4e0
3 changed files with 5 additions and 2 deletions

View File

@ -45,8 +45,8 @@ async function startOneUser(): Promise<void> {
}
(async () => {
connectionManager.initBenchmark();
//await connectionManager.init();
for (let userNo = 0; userNo < 40; userNo++) {
startOneUser();

View File

@ -31,6 +31,10 @@ class ConnectionManager {
}
}
public initBenchmark(): void {
this.authToken = 'test';
}
public connectToRoomSocket(): Promise<RoomConnection> {
return new Promise<RoomConnection>((resolve, reject) => {
const connection = new RoomConnection(this.authToken as string);

View File

@ -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());