Browse Source

feat(external_api): notify when api is disposed

j8
Gabriel-Tiberiu Imre-Lucaci 6 years ago
parent
commit
5739e1deaa
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      doc/api.md
  2. 1
    0
      modules/API/external/external_api.js

+ 1
- 1
doc/api.md View File

256
 
256
 
257
 * **readyToClose** - event notification fired when Jitsi Meet is ready to be closed (hangup operations are completed).
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
 The listener will receive an object with the following structure:
260
 The listener will receive an object with the following structure:
261
 ```javascript
261
 ```javascript
262
 {
262
 {

+ 1
- 0
modules/API/external/external_api.js View File

534
      * @returns {void}
534
      * @returns {void}
535
      */
535
      */
536
     dispose() {
536
     dispose() {
537
+        this.emit('_willDispose');
537
         this._transport.dispose();
538
         this._transport.dispose();
538
         this.removeAllListeners();
539
         this.removeAllListeners();
539
         if (this._frame) {
540
         if (this._frame) {

Loading…
Cancel
Save