Fixing benchmark initialization
This commit is contained in:
parent
c7f5770968
commit
074398c4e0
@ -45,8 +45,8 @@ async function startOneUser(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
connectionManager.initBenchmark();
|
||||||
|
|
||||||
//await connectionManager.init();
|
|
||||||
|
|
||||||
for (let userNo = 0; userNo < 40; userNo++) {
|
for (let userNo = 0; userNo < 40; userNo++) {
|
||||||
startOneUser();
|
startOneUser();
|
||||||
|
@ -31,6 +31,10 @@ class ConnectionManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public initBenchmark(): void {
|
||||||
|
this.authToken = 'test';
|
||||||
|
}
|
||||||
|
|
||||||
public connectToRoomSocket(): Promise<RoomConnection> {
|
public connectToRoomSocket(): Promise<RoomConnection> {
|
||||||
return new Promise<RoomConnection>((resolve, reject) => {
|
return new Promise<RoomConnection>((resolve, reject) => {
|
||||||
const connection = new RoomConnection(this.authToken as string);
|
const connection = new RoomConnection(this.authToken as string);
|
||||||
|
@ -120,7 +120,6 @@ export class RoomConnection implements RoomConnection {
|
|||||||
} else if (message.hasWebrtcscreensharingsignaltoclientmessage()) {
|
} else if (message.hasWebrtcscreensharingsignaltoclientmessage()) {
|
||||||
this.dispatch(EventMessage.WEBRTC_SCREEN_SHARING_SIGNAL, message.getWebrtcscreensharingsignaltoclientmessage());
|
this.dispatch(EventMessage.WEBRTC_SCREEN_SHARING_SIGNAL, message.getWebrtcscreensharingsignaltoclientmessage());
|
||||||
} else if (message.hasWebrtcstartmessage()) {
|
} else if (message.hasWebrtcstartmessage()) {
|
||||||
console.log('Received WebRtcStartMessage');
|
|
||||||
this.dispatch(EventMessage.WEBRTC_START, message.getWebrtcstartmessage());
|
this.dispatch(EventMessage.WEBRTC_START, message.getWebrtcstartmessage());
|
||||||
} else if (message.hasWebrtcdisconnectmessage()) {
|
} else if (message.hasWebrtcdisconnectmessage()) {
|
||||||
this.dispatch(EventMessage.WEBRTC_DISCONNECT, message.getWebrtcdisconnectmessage());
|
this.dispatch(EventMessage.WEBRTC_DISCONNECT, message.getWebrtcdisconnectmessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user