pull/12586/head jitsi-meet_8088
Saúl Ibarra Corretgé 2 years ago committed by Saúl Ibarra Corretgé
parent 533501deb6
commit f7926c9cfb
  1. 16
      modules/API/API.js
  2. 1
      modules/API/external/external_api.js

@ -1450,6 +1450,22 @@ class API {
});
}
/**
* Notify external application that the data channel has been closed.
*
* @param {number} code - The close code.
* @param {string} reason - The close reason.
*
* @returns {void}
*/
notifyDataChannelClosed(code: number, reason: string) {
this._sendEvent({
name: 'data-channel-closed',
code,
reason
});
}
/**
* Notify external application that the data channel has been opened.
*

@ -106,6 +106,7 @@ const events = {
'camera-error': 'cameraError',
'chat-updated': 'chatUpdated',
'content-sharing-participants-changed': 'contentSharingParticipantsChanged',
'data-channel-closed': 'dataChannelClosed',
'data-channel-opened': 'dataChannelOpened',
'device-list-changed': 'deviceListChanged',
'display-name-change': 'displayNameChange',

Loading…
Cancel
Save