Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(external_api): notify when api is disposed

Gabriel-Tiberiu Imre-Lucaci5739e1deaa70
diff --git a/doc/api.md b/doc/api.md
index 736a7ed844..4de9ccda7c 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -256,7 +256,7 @@ changes. The listener will receive an object with the following structure:
* **readyToClose** - event notification fired when Jitsi Meet is ready to be closed (hangup operations are completed).
-* **subjectChange** - event notifications about subject of conference changes.
+* **subjectChange** - event notifications about subject of conference changes.
The listener will receive an object with the following structure:
```javascript
{
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index 68088e1df0..07eb49d52a 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -534,6 +534,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
* @returns {void}
*/
dispose() {
+ this.emit('_willDispose');
this._transport.dispose();
this.removeAllListeners();
if (this._frame) {