Kaynağa Gözat

feat(external_api): notify when api is disposed

j8
Gabriel-Tiberiu Imre-Lucaci 6 yıl önce
ebeveyn
işleme
5739e1deaa
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1
    1
      doc/api.md
  2. 1
    0
      modules/API/external/external_api.js

+ 1
- 1
doc/api.md Dosyayı Görüntüle

@@ -256,7 +256,7 @@ changes. The listener will receive an object with the following structure:
256 256
 
257 257
 * **readyToClose** - event notification fired when Jitsi Meet is ready to be closed (hangup operations are completed).
258 258
 
259
-* **subjectChange** - event notifications about subject of conference changes. 
259
+* **subjectChange** - event notifications about subject of conference changes.
260 260
 The listener will receive an object with the following structure:
261 261
 ```javascript
262 262
 {

+ 1
- 0
modules/API/external/external_api.js Dosyayı Görüntüle

@@ -534,6 +534,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
534 534
      * @returns {void}
535 535
      */
536 536
     dispose() {
537
+        this.emit('_willDispose');
537 538
         this._transport.dispose();
538 539
         this.removeAllListeners();
539 540
         if (this._frame) {

Loading…
İptal
Kaydet