Sfoglia il codice sorgente

Plumbing for e2e pings. (#1973)

* Plumbing for e2e pings.
* linter fixes
* Re-use existing event instead of introducing a new one.
dev1
George Politis 3 anni fa
parent
commit
3b38ab37f2
Nessun account collegato all'indirizzo email del committer
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 1
    1
      JitsiConference.js
  2. 4
    0
      modules/e2eping/e2eping.js

+ 1
- 1
JitsiConference.js Vedi File

@@ -134,7 +134,7 @@ export default function JitsiConference(options) {
134 134
     this.xmpp = this.connection?.xmpp;
135 135
 
136 136
     if (this.xmpp.isRoomCreated(options.name, options.customDomain)) {
137
-        const errmsg = 'A coference with the same name has already been created!';
137
+        const errmsg = 'A conference with the same name has already been created!';
138 138
 
139 139
         delete this.connection;
140 140
         delete this.xmpp;

+ 4
- 0
modules/e2eping/e2eping.js Vedi File

@@ -1,6 +1,7 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 
3 3
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
4
+import * as JitsiE2EPingEvents from '../../service/e2eping/E2ePingEvents';
4 5
 
5 6
 const logger = getLogger(__filename);
6 7
 
@@ -160,6 +161,9 @@ class ParticipantWrapper {
160 161
             logger.info(`Measured RTT=${rtt} ms to ${this.id} (in ${this.participant.getProperty('region')})`);
161 162
             this.stop();
162 163
 
164
+            this.e2eping.conference.eventEmitter.emit(
165
+                JitsiE2EPingEvents.E2E_RTT_CHANGED, this.participant, rtt);
166
+
163 167
             return;
164 168
         } else if (totalNumRequests > 2 * this.e2eping.numRequests) {
165 169
             logger.info(`Stopping e2eping for ${this.id} because we sent ${totalNumRequests} with only `

Loading…
Annulla
Salva