feat(external-api) Forward non participant message to iframe (#13440)

* Forward non-participant-message-received to iFrame API

* Updated comment

* Fix lint errors
This commit is contained in:
garysmith058
2023-06-12 18:10:42 +10:00
committed by GitHub
parent 55f66e236e
commit 277ca23c52
3 changed files with 22 additions and 1 deletions

View File

@@ -2027,6 +2027,23 @@ class API {
});
}
/**
* Notify external application (if API is enabled) if non participant message
* is received.
*
* @param {string} id - The resource id of the sender.
* @param {Object} json - The json carried by the message.
* @returns {void}
*/
notifyNonParticipantMessageReceived(id, json) {
this._sendEvent({
name: 'non-participant-message-received',
id,
message: json
});
}
/**
* Notify the external application (if API is enabled) if the connection type changed.
*