Bläddra i källkod

feat(ts) TypesScript enum for XMPPEvents

dev1
Gary Hunt 3 år sedan
förälder
incheckning
3165c46dab
Inget konto är kopplat till bidragsgivarens mejladress

+ 1
- 1
JitsiConference.js Visa fil

@@ -72,7 +72,7 @@ import {
72 72
     createJingleEvent,
73 73
     createP2PEvent
74 74
 } from './service/statistics/AnalyticsEvents';
75
-import * as XMPPEvents from './service/xmpp/XMPPEvents';
75
+import { XMPPEvents } from './service/xmpp/XMPPEvents';
76 76
 
77 77
 const logger = getLogger(__filename);
78 78
 

+ 1
- 1
JitsiConferenceEventManager.js Visa fil

@@ -19,7 +19,7 @@ import {
19 19
     createJingleEvent,
20 20
     createRemotelyMutedEvent
21 21
 } from './service/statistics/AnalyticsEvents';
22
-import XMPPEvents from './service/xmpp/XMPPEvents';
22
+import { XMPPEvents } from './service/xmpp/XMPPEvents';
23 23
 
24 24
 const logger = getLogger(__filename);
25 25
 

+ 1
- 1
modules/connectivity/ConnectionQuality.js Visa fil

@@ -8,7 +8,7 @@ import browser from '../browser';
8 8
 
9 9
 const Resolutions = require('../../service/RTC/Resolutions');
10 10
 const VideoType = require('../../service/RTC/VideoType');
11
-const XMPPEvents = require('../../service/xmpp/XMPPEvents');
11
+const { XMPPEvents } = require('../../service/xmpp/XMPPEvents');
12 12
 
13 13
 const logger = getLogger(__filename);
14 14
 

+ 1
- 1
modules/proxyconnection/ProxyConnectionPC.js Visa fil

@@ -1,7 +1,7 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 
3 3
 import RTCEvents from '../../service/RTC/RTCEvents';
4
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
4
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
5 5
 import RTC from '../RTC/RTC';
6 6
 import JingleSessionPC from '../xmpp/JingleSessionPC';
7 7
 import SignalingLayerImpl from '../xmpp/SignalingLayerImpl';

+ 1
- 1
modules/recording/RecordingManager.js Visa fil

@@ -1,6 +1,6 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 
3
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
3
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
4 4
 
5 5
 import JibriSession from './JibriSession';
6 6
 import recordingXMLUtils from './recordingXMLUtils';

+ 1
- 1
modules/statistics/SpeakerStatsCollector.js Visa fil

@@ -1,5 +1,5 @@
1 1
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
2
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
2
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
3 3
 
4 4
 import SpeakerStats from './SpeakerStats';
5 5
 

+ 1
- 1
modules/videosipgw/VideoSIPGW.js Visa fil

@@ -1,7 +1,7 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 const logger = getLogger(__filename);
3 3
 
4
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
4
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
5 5
 
6 6
 import JitsiVideoSIPGWSession from './JitsiVideoSIPGWSession';
7 7
 import * as Constants from './VideoSIPGWConstants';

+ 3
- 3
modules/xmpp/AVModeration.js Visa fil

@@ -2,7 +2,7 @@ import { getLogger } from '@jitsi/logger';
2 2
 import { $msg } from 'strophe.js';
3 3
 
4 4
 import * as MediaType from '../../service/RTC/MediaType';
5
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
5
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
6 6
 
7 7
 const logger = getLogger(__filename);
8 8
 
@@ -54,7 +54,7 @@ export default class AVModeration {
54 54
      */
55 55
     enable(state, mediaType) {
56 56
         if (!this.isSupported() || !this._mainRoom.isModerator()) {
57
-            logger.error(`Cannot enable:${state} AV moderation supported:${this.isSupported()}, 
57
+            logger.error(`Cannot enable:${state} AV moderation supported:${this.isSupported()},
58 58
                 moderator:${this._mainRoom.isModerator()}`);
59 59
 
60 60
             return;
@@ -82,7 +82,7 @@ export default class AVModeration {
82 82
      */
83 83
     approve(mediaType, jid) {
84 84
         if (!this.isSupported() || !this._mainRoom.isModerator()) {
85
-            logger.error(`Cannot approve in AV moderation supported:${this.isSupported()}, 
85
+            logger.error(`Cannot approve in AV moderation supported:${this.isSupported()},
86 86
                 moderator:${this._mainRoom.isModerator()}`);
87 87
 
88 88
             return;

+ 4
- 4
modules/xmpp/BreakoutRooms.js Visa fil

@@ -1,7 +1,7 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 import { $msg } from 'strophe.js';
3 3
 
4
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
4
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
5 5
 
6 6
 const FEATURE_KEY = 'features/breakout-rooms';
7 7
 const BREAKOUT_ROOM_ACTIONS = {
@@ -49,7 +49,7 @@ export default class BreakoutRooms {
49 49
      */
50 50
     createBreakoutRoom(subject) {
51 51
         if (!this.isSupported() || !this.room.isModerator()) {
52
-            logger.error(`Cannot create breakout room - supported:${this.isSupported()}, 
52
+            logger.error(`Cannot create breakout room - supported:${this.isSupported()},
53 53
                 moderator:${this.room.isModerator()}`);
54 54
 
55 55
             return;
@@ -70,7 +70,7 @@ export default class BreakoutRooms {
70 70
      */
71 71
     removeBreakoutRoom(breakoutRoomJid) {
72 72
         if (!this.isSupported() || !this.room.isModerator()) {
73
-            logger.error(`Cannot remove breakout room - supported:${this.isSupported()}, 
73
+            logger.error(`Cannot remove breakout room - supported:${this.isSupported()},
74 74
                 moderator:${this.room.isModerator()}`);
75 75
 
76 76
             return;
@@ -92,7 +92,7 @@ export default class BreakoutRooms {
92 92
      */
93 93
     sendParticipantToRoom(participantJid, roomJid) {
94 94
         if (!this.isSupported() || !this.room.isModerator()) {
95
-            logger.error(`Cannot send participant to room - supported:${this.isSupported()}, 
95
+            logger.error(`Cannot send participant to room - supported:${this.isSupported()},
96 96
                 moderator:${this.room.isModerator()}`);
97 97
 
98 98
             return;

+ 1
- 1
modules/xmpp/Caps.js Visa fil

@@ -2,7 +2,7 @@
2 2
 
3 3
 import { b64_sha1, Strophe } from 'strophe.js'; // eslint-disable-line camelcase
4 4
 
5
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
5
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
6 6
 import Listenable from '../util/Listenable';
7 7
 
8 8
 /**

+ 1
- 1
modules/xmpp/ChatRoom.js Visa fil

@@ -7,7 +7,7 @@ import { $iq, $msg, $pres, Strophe } from 'strophe.js';
7 7
 import * as JitsiTranscriptionStatus from '../../JitsiTranscriptionStatus';
8 8
 import * as MediaType from '../../service/RTC/MediaType';
9 9
 import VideoType from '../../service/RTC/VideoType';
10
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
10
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
11 11
 import GlobalOnErrorHandler from '../util/GlobalOnErrorHandler';
12 12
 import Listenable from '../util/Listenable';
13 13
 

+ 1
- 1
modules/xmpp/ChatRoom.spec.js Visa fil

@@ -1,6 +1,6 @@
1 1
 import { $pres } from 'strophe.js';
2 2
 
3
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
3
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
4 4
 
5 5
 import ChatRoom, { parser } from './ChatRoom';
6 6
 

+ 1
- 1
modules/xmpp/JingleSessionPC.js Visa fil

@@ -10,7 +10,7 @@ import {
10 10
     ICE_DURATION,
11 11
     ICE_STATE_CHANGED
12 12
 } from '../../service/statistics/AnalyticsEvents';
13
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
13
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
14 14
 import { SS_DEFAULT_FRAME_RATE } from '../RTC/ScreenObtainer';
15 15
 import FeatureFlags from '../flags/FeatureFlags';
16 16
 import SDP from '../sdp/SDP';

+ 1
- 1
modules/xmpp/Lobby.js Visa fil

@@ -1,7 +1,7 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 import { $msg, Strophe } from 'strophe.js';
3 3
 
4
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
4
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
5 5
 
6 6
 const logger = getLogger(__filename);
7 7
 

+ 1
- 1
modules/xmpp/SignalingLayerImpl.js Visa fil

@@ -5,7 +5,7 @@ import * as MediaType from '../../service/RTC/MediaType';
5 5
 import * as SignalingEvents from '../../service/RTC/SignalingEvents';
6 6
 import SignalingLayer, { getMediaTypeFromSourceName } from '../../service/RTC/SignalingLayer';
7 7
 import VideoType from '../../service/RTC/VideoType';
8
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
8
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
9 9
 import FeatureFlags from '../flags/FeatureFlags';
10 10
 
11 11
 import { filterNodeFromPresenceJSON } from './ChatRoom';

+ 1
- 1
modules/xmpp/SignalingLayerImpl.spec.js Visa fil

@@ -2,7 +2,7 @@ import * as MediaType from '../../service/RTC/MediaType';
2 2
 import * as SignalingEvents from '../../service/RTC/SignalingEvents';
3 3
 import { getSourceNameForJitsiTrack } from '../../service/RTC/SignalingLayer';
4 4
 import VideoType from '../../service/RTC/VideoType';
5
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
5
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
6 6
 import FeatureFlags from '../flags/FeatureFlags';
7 7
 import Listenable from '../util/Listenable';
8 8
 

+ 1
- 1
modules/xmpp/moderator.js Visa fil

@@ -7,7 +7,7 @@ import Settings from '../settings/Settings';
7 7
 
8 8
 const AuthenticationEvents
9 9
     = require('../../service/authentication/AuthenticationEvents');
10
-const XMPPEvents = require('../../service/xmpp/XMPPEvents');
10
+const { XMPPEvents } = require('../../service/xmpp/XMPPEvents');
11 11
 const GlobalOnErrorHandler = require('../util/GlobalOnErrorHandler');
12 12
 
13 13
 const logger = getLogger(__filename);

+ 1
- 1
modules/xmpp/strophe.emuc.js Visa fil

@@ -3,7 +3,7 @@
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import { Strophe } from 'strophe.js';
5 5
 
6
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
6
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
7 7
 
8 8
 import ChatRoom from './ChatRoom';
9 9
 import { ConnectionPluginListenable } from './ConnectionPlugin';

+ 1
- 1
modules/xmpp/strophe.jingle.js Visa fil

@@ -9,7 +9,7 @@ import {
9 9
     ACTION_JINGLE_TR_SUCCESS,
10 10
     createJingleEvent
11 11
 } from '../../service/statistics/AnalyticsEvents';
12
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
12
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
13 13
 import Statistics from '../statistics/statistics';
14 14
 import GlobalOnErrorHandler from '../util/GlobalOnErrorHandler';
15 15
 import RandomUtil from '../util/RandomUtil';

+ 1
- 1
modules/xmpp/xmpp.js Visa fil

@@ -6,7 +6,7 @@ import 'strophejs-plugin-disco';
6 6
 
7 7
 import * as JitsiConnectionErrors from '../../JitsiConnectionErrors';
8 8
 import * as JitsiConnectionEvents from '../../JitsiConnectionEvents';
9
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
9
+import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
10 10
 import browser from '../browser';
11 11
 import { E2EEncryption } from '../e2ee/E2EEncryption';
12 12
 import Statistics from '../statistics/statistics';

+ 97
- 288
service/xmpp/XMPPEvents.spec.ts Visa fil

@@ -4,297 +4,106 @@ import * as exported from "./XMPPEvents";
4 4
 
5 5
 describe( "/service/xmpp/XMPPEvents members", () => {
6 6
     const {
7
-        ADD_ICE_CANDIDATE_FAILED,
8
-        AUDIO_MUTED_BY_FOCUS,
9
-        VIDEO_MUTED_BY_FOCUS,
10
-        AUTHENTICATION_REQUIRED,
11
-        BRIDGE_DOWN,
12
-        CALL_ACCEPTED,
13
-        CALL_INCOMING,
14
-        CALL_ENDED,
15
-        CHAT_ERROR_RECEIVED,
16
-        SETTINGS_ERROR_RECEIVED,
17
-        CONFERENCE_PROPERTIES_CHANGED,
18
-        CONNECTION_ESTABLISHED,
19
-        CONNECTION_FAILED,
20
-        CONNECTION_INTERRUPTED,
21
-        CONNECTION_RESTORED,
22
-        CONNECTION_ICE_FAILED,
23
-        CONNECTION_RESTARTED,
24
-        CONNECTION_STATUS_CHANGED,
25
-        DISPLAY_NAME_CHANGED,
26
-        EMUC_ROOM_ADDED,
27
-        EMUC_ROOM_REMOVED,
28
-        ETHERPAD,
29
-        FOCUS_DISCONNECTED,
30
-        FOCUS_LEFT,
31
-        GRACEFUL_SHUTDOWN,
32
-        ICE_RESTARTING,
33
-        ICE_RESTART_SUCCESS,
34
-        KICKED,
35
-        LOCAL_ROLE_CHANGED,
36
-        MEETING_ID_SET,
37
-        MESSAGE_RECEIVED,
38
-        INVITE_MESSAGE_RECEIVED,
39
-        PRIVATE_MESSAGE_RECEIVED,
40
-        MUC_MEMBER_BOT_TYPE_CHANGED,
41
-        MUC_DESTROYED,
42
-        MUC_JOIN_IN_PROGRESS,
43
-        MUC_JOINED,
44
-        MUC_MEMBER_JOINED,
45
-        MUC_MEMBER_LEFT,
46
-        MUC_LOBBY_MEMBER_JOINED,
47
-        MUC_LOBBY_MEMBER_UPDATED,
48
-        MUC_LOBBY_MEMBER_LEFT,
49
-        MUC_DENIED_ACCESS,
50
-        MUC_LEFT,
51
-        MUC_ROLE_CHANGED,
52
-        MUC_LOCK_CHANGED,
53
-        MUC_MEMBERS_ONLY_CHANGED,
54
-        PARTICIPANT_AUDIO_MUTED,
55
-        PARTICIPANT_VIDEO_MUTED,
56
-        PARTICIPANT_VIDEO_TYPE_CHANGED,
57
-        PARTICIPANT_FEATURES_CHANGED,
58
-        PASSWORD_REQUIRED,
59
-        PHONE_NUMBER_CHANGED,
60
-        PRESENCE_RECEIVED,
61
-        PRESENCE_STATUS,
62
-        PROMPT_FOR_LOGIN,
63
-        READY_TO_JOIN,
64
-        RECORDER_STATE_CHANGED,
65
-        REMOTE_STATS,
66
-        RENEGOTIATION_FAILED,
67
-        RESERVATION_ERROR,
68
-        ROOM_CONNECT_ERROR,
69
-        ROOM_CONNECT_NOT_ALLOWED_ERROR,
70
-        ROOM_JOIN_ERROR,
71
-        ROOM_CONNECT_MEMBERS_ONLY_ERROR,
72
-        ROOM_MAX_USERS_ERROR,
73
-        SENDING_CHAT_MESSAGE,
74
-        SENDING_PRIVATE_CHAT_MESSAGE,
75
-        SESSION_ACCEPT,
76
-        SESSION_ACCEPT_ERROR,
77
-        SESSION_ACCEPT_TIMEOUT,
78
-        SOURCE_ADD,
79
-        SOURCE_ADD_ERROR,
80
-        SOURCE_REMOVE,
81
-        SOURCE_REMOVE_ERROR,
82
-        SPEAKER_STATS_RECEIVED,
83
-        CONFERENCE_TIMESTAMP_RECEIVED,
84
-        AV_MODERATION_APPROVED,
85
-        AV_MODERATION_REJECTED,
86
-        AV_MODERATION_RECEIVED,
87
-        AV_MODERATION_CHANGED,
88
-        AV_MODERATION_PARTICIPANT_APPROVED,
89
-        AV_MODERATION_PARTICIPANT_REJECTED,
90
-        BREAKOUT_ROOMS_MOVE_TO_ROOM,
91
-        BREAKOUT_ROOMS_EVENT,
92
-        BREAKOUT_ROOMS_UPDATED,
93
-        START_MUTED_FROM_FOCUS,
94
-        SUBJECT_CHANGED,
95
-        SUSPEND_DETECTED,
96
-        TRANSCRIPTION_STATUS_CHANGED,
97
-        TRANSPORT_INFO,
98
-        VIDEO_SIP_GW_AVAILABILITY_CHANGED,
99
-        VIDEO_SIP_GW_SESSION_STATE_CHANGED,
100
-        ICE_CONNECTION_STATE_CHANGED,
101
-        JSON_MESSAGE_RECEIVED,
102 7
         XMPPEvents,
103 8
         ...others
104
-    } = exported as any; // TODO: remove cast after typescript conversion
9
+    } = exported;
10
+
105 11
     it( "known members", () => {
106
-        expect( ADD_ICE_CANDIDATE_FAILED ).toBe( 'xmpp.add_ice_candidate_failed' );
107
-        expect( AUDIO_MUTED_BY_FOCUS ).toBe( 'xmpp.audio_muted_by_focus' );
108
-        expect( VIDEO_MUTED_BY_FOCUS ).toBe( 'xmpp.video_muted_by_focus' );
109
-        expect( AUTHENTICATION_REQUIRED ).toBe( 'xmpp.authentication_required' );
110
-        expect( BRIDGE_DOWN ).toBe( 'xmpp.bridge_down' );
111
-        expect( CALL_ACCEPTED ).toBe( 'xmpp.callaccepted.jingle' );
112
-        expect( CALL_INCOMING ).toBe( 'xmpp.callincoming.jingle' );
113
-        expect( CALL_ENDED ).toBe( 'xmpp.callended.jingle' );
114
-        expect( CHAT_ERROR_RECEIVED ).toBe( 'xmpp.chat_error_received' );
115
-        expect( SETTINGS_ERROR_RECEIVED ).toBe( 'xmpp.settings_error_received' );
116
-        expect( CONFERENCE_PROPERTIES_CHANGED ).toBe( 'xmpp.conference_properties_changed' );
117
-        expect( CONNECTION_ESTABLISHED ).toBe( 'xmpp.connection.connected' );
118
-        expect( CONNECTION_FAILED ).toBe( 'xmpp.connection.failed' );
119
-        expect( CONNECTION_INTERRUPTED ).toBe( 'xmpp.connection.interrupted' );
120
-        expect( CONNECTION_RESTORED ).toBe( 'xmpp.connection.restored' );
121
-        expect( CONNECTION_ICE_FAILED ).toBe( 'xmpp.connection.ice.failed' );
122
-        expect( CONNECTION_RESTARTED ).toBe( 'xmpp.connection.restart' );
123
-        expect( CONNECTION_STATUS_CHANGED ).toBe( 'xmpp.connection.status.changed' );
124
-        expect( DISPLAY_NAME_CHANGED ).toBe( 'xmpp.display_name_changed' );
125
-        expect( EMUC_ROOM_ADDED ).toBe( 'xmpp.emuc_room_added' );
126
-        expect( EMUC_ROOM_REMOVED ).toBe( 'xmpp.emuc_room_removed' );
127
-        expect( ETHERPAD ).toBe( 'xmpp.etherpad' );
128
-        expect( FOCUS_DISCONNECTED ).toBe( 'xmpp.focus_disconnected' );
129
-        expect( FOCUS_LEFT ).toBe( 'xmpp.focus_left' );
130
-        expect( GRACEFUL_SHUTDOWN ).toBe( 'xmpp.graceful_shutdown' );
131
-        expect( ICE_RESTARTING ).toBe( 'rtc.ice_restarting' );
132
-        expect( ICE_RESTART_SUCCESS ).toBe( 'rtc.ice_restart_success' );
133
-        expect( KICKED ).toBe( 'xmpp.kicked' );
134
-        expect( LOCAL_ROLE_CHANGED ).toBe( 'xmpp.localrole_changed' );
135
-        expect( MEETING_ID_SET ).toBe( 'xmpp.meeting_id_set' );
136
-        expect( MESSAGE_RECEIVED ).toBe( 'xmpp.message_received' );
137
-        expect( INVITE_MESSAGE_RECEIVED ).toBe( 'xmpp.invite_message_received' );
138
-        expect( PRIVATE_MESSAGE_RECEIVED ).toBe( 'xmpp.private_message_received' );
139
-        expect( MUC_MEMBER_BOT_TYPE_CHANGED ).toBe( 'xmpp.muc_member_bot_type_changed' );
140
-        expect( MUC_DESTROYED ).toBe( 'xmpp.muc_destroyed' );
141
-        expect( MUC_JOIN_IN_PROGRESS ).toBe( 'xmpp.muc_join_in_progress' );
142
-        expect( MUC_JOINED ).toBe( 'xmpp.muc_joined' );
143
-        expect( MUC_MEMBER_JOINED ).toBe( 'xmpp.muc_member_joined' );
144
-        expect( MUC_MEMBER_LEFT ).toBe( 'xmpp.muc_member_left' );
145
-        expect( MUC_LOBBY_MEMBER_JOINED ).toBe( 'xmpp.muc_lobby_member_joined' );
146
-        expect( MUC_LOBBY_MEMBER_UPDATED ).toBe( 'xmpp.muc_lobby_member_updated' );
147
-        expect( MUC_LOBBY_MEMBER_LEFT ).toBe( 'xmpp.muc_lobby_member_left' );
148
-        expect( MUC_DENIED_ACCESS ).toBe( 'xmpp.muc_denied access' );
149
-        expect( MUC_LEFT ).toBe( 'xmpp.muc_left' );
150
-        expect( MUC_ROLE_CHANGED ).toBe( 'xmpp.muc_role_changed' );
151
-        expect( MUC_LOCK_CHANGED ).toBe( 'xmpp.muc_lock_changed' );
152
-        expect( MUC_MEMBERS_ONLY_CHANGED ).toBe( 'xmpp.muc_members_only_changed' );
153
-        expect( PARTICIPANT_AUDIO_MUTED ).toBe( 'xmpp.audio_muted' );
154
-        expect( PARTICIPANT_VIDEO_MUTED ).toBe( 'xmpp.video_muted' );
155
-        expect( PARTICIPANT_VIDEO_TYPE_CHANGED ).toBe( 'xmpp.video_type' );
156
-        expect( PARTICIPANT_FEATURES_CHANGED ).toBe( 'xmpp.participant_features_changed' );
157
-        expect( PASSWORD_REQUIRED ).toBe( 'xmpp.password_required' );
158
-        expect( PHONE_NUMBER_CHANGED ).toBe( 'conference.phoneNumberChanged' );
159
-        expect( PRESENCE_RECEIVED ).toBe( 'xmpp.presence_received' );
160
-        expect( PRESENCE_STATUS ).toBe( 'xmpp.presence_status' );
161
-        expect( PROMPT_FOR_LOGIN ).toBe( 'xmpp.prompt_for_login' );
162
-        expect( READY_TO_JOIN ).toBe( 'xmpp.ready_to_join' );
163
-        expect( RECORDER_STATE_CHANGED ).toBe( 'xmpp.recorderStateChanged' );
164
-        expect( REMOTE_STATS ).toBe( 'xmpp.remote_stats' );
165
-        expect( RENEGOTIATION_FAILED ).toBe( 'xmpp.renegotiation_failed' );
166
-        expect( RESERVATION_ERROR ).toBe( 'xmpp.room_reservation_error' );
167
-        expect( ROOM_CONNECT_ERROR ).toBe( 'xmpp.room_connect_error' );
168
-        expect( ROOM_CONNECT_NOT_ALLOWED_ERROR ).toBe( 'xmpp.room_connect_error.not_allowed' );
169
-        expect( ROOM_JOIN_ERROR ).toBe( 'xmpp.room_join_error' );
170
-        expect( ROOM_CONNECT_MEMBERS_ONLY_ERROR ).toBe( 'xmpp.room_connect_error.members_only' );
171
-        expect( ROOM_MAX_USERS_ERROR ).toBe( 'xmpp.room_max_users_error' );
172
-        expect( SENDING_CHAT_MESSAGE ).toBe( 'xmpp.sending_chat_message' );
173
-        expect( SENDING_PRIVATE_CHAT_MESSAGE ).toBe( 'xmpp.sending_private_chat_message' );
174
-        expect( SESSION_ACCEPT ).toBe( 'xmpp.session_accept' );
175
-        expect( SESSION_ACCEPT_ERROR ).toBe( 'xmpp.session_accept_error' );
176
-        expect( SESSION_ACCEPT_TIMEOUT ).toBe( 'xmpp.session_accept_timeout' );
177
-        expect( SOURCE_ADD ).toBe( 'xmpp.source_add' );
178
-        expect( SOURCE_ADD_ERROR ).toBe( 'xmpp.source_add_error' );
179
-        expect( SOURCE_REMOVE ).toBe( 'xmpp.source_remove' );
180
-        expect( SOURCE_REMOVE_ERROR ).toBe( 'xmpp.source_remove_error' );
181
-        expect( SPEAKER_STATS_RECEIVED ).toBe( 'xmpp.speaker_stats_received' );
182
-        expect( CONFERENCE_TIMESTAMP_RECEIVED ).toBe( 'xmpp.conference_timestamp_received' );
183
-        expect( AV_MODERATION_APPROVED ).toBe( 'xmpp.av_moderation.approved' );
184
-        expect( AV_MODERATION_REJECTED ).toBe( 'xmpp.av_moderation.rejected' );
185
-        expect( AV_MODERATION_RECEIVED ).toBe( 'xmpp.av_moderation.received' );
186
-        expect( AV_MODERATION_CHANGED ).toBe( 'xmpp.av_moderation.changed' );
187
-        expect( AV_MODERATION_PARTICIPANT_APPROVED ).toBe( 'xmpp.av_moderation.participant.approved' );
188
-        expect( AV_MODERATION_PARTICIPANT_REJECTED ).toBe( 'xmpp.av_moderation.participant.rejected' );
189
-        expect( BREAKOUT_ROOMS_MOVE_TO_ROOM ).toBe( 'xmpp.breakout-rooms.move-to-room' );
190
-        expect( BREAKOUT_ROOMS_EVENT ).toBe( 'xmpp.breakout-rooms.event' );
191
-        expect( BREAKOUT_ROOMS_UPDATED ).toBe( 'xmpp.breakout-rooms.updated' );
192
-        expect( START_MUTED_FROM_FOCUS ).toBe( 'xmpp.start_muted_from_focus' );
193
-        expect( SUBJECT_CHANGED ).toBe( 'xmpp.subject_changed' );
194
-        expect( SUSPEND_DETECTED ).toBe( 'xmpp.suspend_detected' );
195
-        expect( TRANSCRIPTION_STATUS_CHANGED ).toBe( 'xmpp.transcription_status_changed' );
196
-        expect( TRANSPORT_INFO ).toBe( 'xmpp.transportinfo.jingle' );
197
-        expect( VIDEO_SIP_GW_AVAILABILITY_CHANGED ).toBe( 'xmpp.videoSIPGWAvailabilityChanged' );
198
-        expect( VIDEO_SIP_GW_SESSION_STATE_CHANGED ).toBe( 'xmpp.videoSIPGWSessionStateChanged' );
199
-        expect( ICE_CONNECTION_STATE_CHANGED ).toBe( 'xmpp.ice_connection_state_changed' );
200
-        expect( JSON_MESSAGE_RECEIVED ).toBe( 'xmmp.json_message_received' );
201
-        if ( XMPPEvents ) {
202
-            expect( XMPPEvents.ADD_ICE_CANDIDATE_FAILED ).toBe( 'xmpp.add_ice_candidate_failed' );
203
-            expect( XMPPEvents.AUDIO_MUTED_BY_FOCUS ).toBe( 'xmpp.audio_muted_by_focus' );
204
-            expect( XMPPEvents.VIDEO_MUTED_BY_FOCUS ).toBe( 'xmpp.video_muted_by_focus' );
205
-            expect( XMPPEvents.AUTHENTICATION_REQUIRED ).toBe( 'xmpp.authentication_required' );
206
-            expect( XMPPEvents.BRIDGE_DOWN ).toBe( 'xmpp.bridge_down' );
207
-            expect( XMPPEvents.CALL_ACCEPTED ).toBe( 'xmpp.callaccepted.jingle' );
208
-            expect( XMPPEvents.CALL_INCOMING ).toBe( 'xmpp.callincoming.jingle' );
209
-            expect( XMPPEvents.CALL_ENDED ).toBe( 'xmpp.callended.jingle' );
210
-            expect( XMPPEvents.CHAT_ERROR_RECEIVED ).toBe( 'xmpp.chat_error_received' );
211
-            expect( XMPPEvents.SETTINGS_ERROR_RECEIVED ).toBe( 'xmpp.settings_error_received' );
212
-            expect( XMPPEvents.CONFERENCE_PROPERTIES_CHANGED ).toBe( 'xmpp.conference_properties_changed' );
213
-            expect( XMPPEvents.CONNECTION_ESTABLISHED ).toBe( 'xmpp.connection.connected' );
214
-            expect( XMPPEvents.CONNECTION_FAILED ).toBe( 'xmpp.connection.failed' );
215
-            expect( XMPPEvents.CONNECTION_INTERRUPTED ).toBe( 'xmpp.connection.interrupted' );
216
-            expect( XMPPEvents.CONNECTION_RESTORED ).toBe( 'xmpp.connection.restored' );
217
-            expect( XMPPEvents.CONNECTION_ICE_FAILED ).toBe( 'xmpp.connection.ice.failed' );
218
-            expect( XMPPEvents.CONNECTION_RESTARTED ).toBe( 'xmpp.connection.restart' );
219
-            expect( XMPPEvents.CONNECTION_STATUS_CHANGED ).toBe( 'xmpp.connection.status.changed' );
220
-            expect( XMPPEvents.DISPLAY_NAME_CHANGED ).toBe( 'xmpp.display_name_changed' );
221
-            expect( XMPPEvents.EMUC_ROOM_ADDED ).toBe( 'xmpp.emuc_room_added' );
222
-            expect( XMPPEvents.EMUC_ROOM_REMOVED ).toBe( 'xmpp.emuc_room_removed' );
223
-            expect( XMPPEvents.ETHERPAD ).toBe( 'xmpp.etherpad' );
224
-            expect( XMPPEvents.FOCUS_DISCONNECTED ).toBe( 'xmpp.focus_disconnected' );
225
-            expect( XMPPEvents.FOCUS_LEFT ).toBe( 'xmpp.focus_left' );
226
-            expect( XMPPEvents.GRACEFUL_SHUTDOWN ).toBe( 'xmpp.graceful_shutdown' );
227
-            expect( XMPPEvents.ICE_RESTARTING ).toBe( 'rtc.ice_restarting' );
228
-            expect( XMPPEvents.ICE_RESTART_SUCCESS ).toBe( 'rtc.ice_restart_success' );
229
-            expect( XMPPEvents.KICKED ).toBe( 'xmpp.kicked' );
230
-            expect( XMPPEvents.LOCAL_ROLE_CHANGED ).toBe( 'xmpp.localrole_changed' );
231
-            expect( XMPPEvents.MEETING_ID_SET ).toBe( 'xmpp.meeting_id_set' );
232
-            expect( XMPPEvents.MESSAGE_RECEIVED ).toBe( 'xmpp.message_received' );
233
-            expect( XMPPEvents.INVITE_MESSAGE_RECEIVED ).toBe( 'xmpp.invite_message_received' );
234
-            expect( XMPPEvents.PRIVATE_MESSAGE_RECEIVED ).toBe( 'xmpp.private_message_received' );
235
-            expect( XMPPEvents.MUC_MEMBER_BOT_TYPE_CHANGED ).toBe( 'xmpp.muc_member_bot_type_changed' );
236
-            expect( XMPPEvents.MUC_DESTROYED ).toBe( 'xmpp.muc_destroyed' );
237
-            expect( XMPPEvents.MUC_JOIN_IN_PROGRESS ).toBe( 'xmpp.muc_join_in_progress' );
238
-            expect( XMPPEvents.MUC_JOINED ).toBe( 'xmpp.muc_joined' );
239
-            expect( XMPPEvents.MUC_MEMBER_JOINED ).toBe( 'xmpp.muc_member_joined' );
240
-            expect( XMPPEvents.MUC_MEMBER_LEFT ).toBe( 'xmpp.muc_member_left' );
241
-            expect( XMPPEvents.MUC_LOBBY_MEMBER_JOINED ).toBe( 'xmpp.muc_lobby_member_joined' );
242
-            expect( XMPPEvents.MUC_LOBBY_MEMBER_UPDATED ).toBe( 'xmpp.muc_lobby_member_updated' );
243
-            expect( XMPPEvents.MUC_LOBBY_MEMBER_LEFT ).toBe( 'xmpp.muc_lobby_member_left' );
244
-            expect( XMPPEvents.MUC_DENIED_ACCESS ).toBe( 'xmpp.muc_denied access' );
245
-            expect( XMPPEvents.MUC_LEFT ).toBe( 'xmpp.muc_left' );
246
-            expect( XMPPEvents.MUC_ROLE_CHANGED ).toBe( 'xmpp.muc_role_changed' );
247
-            expect( XMPPEvents.MUC_LOCK_CHANGED ).toBe( 'xmpp.muc_lock_changed' );
248
-            expect( XMPPEvents.MUC_MEMBERS_ONLY_CHANGED ).toBe( 'xmpp.muc_members_only_changed' );
249
-            expect( XMPPEvents.PARTICIPANT_AUDIO_MUTED ).toBe( 'xmpp.audio_muted' );
250
-            expect( XMPPEvents.PARTICIPANT_VIDEO_MUTED ).toBe( 'xmpp.video_muted' );
251
-            expect( XMPPEvents.PARTICIPANT_VIDEO_TYPE_CHANGED ).toBe( 'xmpp.video_type' );
252
-            expect( XMPPEvents.PARTICIPANT_FEATURES_CHANGED ).toBe( 'xmpp.participant_features_changed' );
253
-            expect( XMPPEvents.PASSWORD_REQUIRED ).toBe( 'xmpp.password_required' );
254
-            expect( XMPPEvents.PHONE_NUMBER_CHANGED ).toBe( 'conference.phoneNumberChanged' );
255
-            expect( XMPPEvents.PRESENCE_RECEIVED ).toBe( 'xmpp.presence_received' );
256
-            expect( XMPPEvents.PRESENCE_STATUS ).toBe( 'xmpp.presence_status' );
257
-            expect( XMPPEvents.PROMPT_FOR_LOGIN ).toBe( 'xmpp.prompt_for_login' );
258
-            expect( XMPPEvents.READY_TO_JOIN ).toBe( 'xmpp.ready_to_join' );
259
-            expect( XMPPEvents.RECORDER_STATE_CHANGED ).toBe( 'xmpp.recorderStateChanged' );
260
-            expect( XMPPEvents.REMOTE_STATS ).toBe( 'xmpp.remote_stats' );
261
-            expect( XMPPEvents.RENEGOTIATION_FAILED ).toBe( 'xmpp.renegotiation_failed' );
262
-            expect( XMPPEvents.RESERVATION_ERROR ).toBe( 'xmpp.room_reservation_error' );
263
-            expect( XMPPEvents.ROOM_CONNECT_ERROR ).toBe( 'xmpp.room_connect_error' );
264
-            expect( XMPPEvents.ROOM_CONNECT_NOT_ALLOWED_ERROR ).toBe( 'xmpp.room_connect_error.not_allowed' );
265
-            expect( XMPPEvents.ROOM_JOIN_ERROR ).toBe( 'xmpp.room_join_error' );
266
-            expect( XMPPEvents.ROOM_CONNECT_MEMBERS_ONLY_ERROR ).toBe( 'xmpp.room_connect_error.members_only' );
267
-            expect( XMPPEvents.ROOM_MAX_USERS_ERROR ).toBe( 'xmpp.room_max_users_error' );
268
-            expect( XMPPEvents.SENDING_CHAT_MESSAGE ).toBe( 'xmpp.sending_chat_message' );
269
-            expect( XMPPEvents.SENDING_PRIVATE_CHAT_MESSAGE ).toBe( 'xmpp.sending_private_chat_message' );
270
-            expect( XMPPEvents.SESSION_ACCEPT ).toBe( 'xmpp.session_accept' );
271
-            expect( XMPPEvents.SESSION_ACCEPT_ERROR ).toBe( 'xmpp.session_accept_error' );
272
-            expect( XMPPEvents.SESSION_ACCEPT_TIMEOUT ).toBe( 'xmpp.session_accept_timeout' );
273
-            expect( XMPPEvents.SOURCE_ADD ).toBe( 'xmpp.source_add' );
274
-            expect( XMPPEvents.SOURCE_ADD_ERROR ).toBe( 'xmpp.source_add_error' );
275
-            expect( XMPPEvents.SOURCE_REMOVE ).toBe( 'xmpp.source_remove' );
276
-            expect( XMPPEvents.SOURCE_REMOVE_ERROR ).toBe( 'xmpp.source_remove_error' );
277
-            expect( XMPPEvents.SPEAKER_STATS_RECEIVED ).toBe( 'xmpp.speaker_stats_received' );
278
-            expect( XMPPEvents.CONFERENCE_TIMESTAMP_RECEIVED ).toBe( 'xmpp.conference_timestamp_received' );
279
-            expect( XMPPEvents.AV_MODERATION_APPROVED ).toBe( 'xmpp.av_moderation.approved' );
280
-            expect( XMPPEvents.AV_MODERATION_REJECTED ).toBe( 'xmpp.av_moderation.rejected' );
281
-            expect( XMPPEvents.AV_MODERATION_RECEIVED ).toBe( 'xmpp.av_moderation.received' );
282
-            expect( XMPPEvents.AV_MODERATION_CHANGED ).toBe( 'xmpp.av_moderation.changed' );
283
-            expect( XMPPEvents.AV_MODERATION_PARTICIPANT_APPROVED ).toBe( 'xmpp.av_moderation.participant.approved' );
284
-            expect( XMPPEvents.AV_MODERATION_PARTICIPANT_REJECTED ).toBe( 'xmpp.av_moderation.participant.rejected' );
285
-            expect( XMPPEvents.BREAKOUT_ROOMS_MOVE_TO_ROOM ).toBe( 'xmpp.breakout-rooms.move-to-room' );
286
-            expect( XMPPEvents.BREAKOUT_ROOMS_EVENT ).toBe( 'xmpp.breakout-rooms.event' );
287
-            expect( XMPPEvents.BREAKOUT_ROOMS_UPDATED ).toBe( 'xmpp.breakout-rooms.updated' );
288
-            expect( XMPPEvents.START_MUTED_FROM_FOCUS ).toBe( 'xmpp.start_muted_from_focus' );
289
-            expect( XMPPEvents.SUBJECT_CHANGED ).toBe( 'xmpp.subject_changed' );
290
-            expect( XMPPEvents.SUSPEND_DETECTED ).toBe( 'xmpp.suspend_detected' );
291
-            expect( XMPPEvents.TRANSCRIPTION_STATUS_CHANGED ).toBe( 'xmpp.transcription_status_changed' );
292
-            expect( XMPPEvents.TRANSPORT_INFO ).toBe( 'xmpp.transportinfo.jingle' );
293
-            expect( XMPPEvents.VIDEO_SIP_GW_AVAILABILITY_CHANGED ).toBe( 'xmpp.videoSIPGWAvailabilityChanged' );
294
-            expect( XMPPEvents.VIDEO_SIP_GW_SESSION_STATE_CHANGED ).toBe( 'xmpp.videoSIPGWSessionStateChanged' );
295
-            expect( XMPPEvents.ICE_CONNECTION_STATE_CHANGED ).toBe( 'xmpp.ice_connection_state_changed' );
296
-            expect( XMPPEvents.JSON_MESSAGE_RECEIVED ).toBe( 'xmmp.json_message_received' );
297
-        }
12
+        expect( XMPPEvents.ADD_ICE_CANDIDATE_FAILED ).toBe( 'xmpp.add_ice_candidate_failed' );
13
+        expect( XMPPEvents.AUDIO_MUTED_BY_FOCUS ).toBe( 'xmpp.audio_muted_by_focus' );
14
+        expect( XMPPEvents.VIDEO_MUTED_BY_FOCUS ).toBe( 'xmpp.video_muted_by_focus' );
15
+        expect( XMPPEvents.AUTHENTICATION_REQUIRED ).toBe( 'xmpp.authentication_required' );
16
+        expect( XMPPEvents.BRIDGE_DOWN ).toBe( 'xmpp.bridge_down' );
17
+        expect( XMPPEvents.CALL_ACCEPTED ).toBe( 'xmpp.callaccepted.jingle' );
18
+        expect( XMPPEvents.CALL_INCOMING ).toBe( 'xmpp.callincoming.jingle' );
19
+        expect( XMPPEvents.CALL_ENDED ).toBe( 'xmpp.callended.jingle' );
20
+        expect( XMPPEvents.CHAT_ERROR_RECEIVED ).toBe( 'xmpp.chat_error_received' );
21
+        expect( XMPPEvents.SETTINGS_ERROR_RECEIVED ).toBe( 'xmpp.settings_error_received' );
22
+        expect( XMPPEvents.CONFERENCE_PROPERTIES_CHANGED ).toBe( 'xmpp.conference_properties_changed' );
23
+        expect( XMPPEvents.CONNECTION_ESTABLISHED ).toBe( 'xmpp.connection.connected' );
24
+        expect( XMPPEvents.CONNECTION_FAILED ).toBe( 'xmpp.connection.failed' );
25
+        expect( XMPPEvents.CONNECTION_INTERRUPTED ).toBe( 'xmpp.connection.interrupted' );
26
+        expect( XMPPEvents.CONNECTION_RESTORED ).toBe( 'xmpp.connection.restored' );
27
+        expect( XMPPEvents.CONNECTION_ICE_FAILED ).toBe( 'xmpp.connection.ice.failed' );
28
+        expect( XMPPEvents.CONNECTION_RESTARTED ).toBe( 'xmpp.connection.restart' );
29
+        expect( XMPPEvents.CONNECTION_STATUS_CHANGED ).toBe( 'xmpp.connection.status.changed' );
30
+        expect( XMPPEvents.DISPLAY_NAME_CHANGED ).toBe( 'xmpp.display_name_changed' );
31
+        expect( XMPPEvents.EMUC_ROOM_ADDED ).toBe( 'xmpp.emuc_room_added' );
32
+        expect( XMPPEvents.EMUC_ROOM_REMOVED ).toBe( 'xmpp.emuc_room_removed' );
33
+        expect( XMPPEvents.ETHERPAD ).toBe( 'xmpp.etherpad' );
34
+        expect( XMPPEvents.FOCUS_DISCONNECTED ).toBe( 'xmpp.focus_disconnected' );
35
+        expect( XMPPEvents.FOCUS_LEFT ).toBe( 'xmpp.focus_left' );
36
+        expect( XMPPEvents.GRACEFUL_SHUTDOWN ).toBe( 'xmpp.graceful_shutdown' );
37
+        expect( XMPPEvents.ICE_RESTARTING ).toBe( 'rtc.ice_restarting' );
38
+        expect( XMPPEvents.ICE_RESTART_SUCCESS ).toBe( 'rtc.ice_restart_success' );
39
+        expect( XMPPEvents.KICKED ).toBe( 'xmpp.kicked' );
40
+        expect( XMPPEvents.LOCAL_ROLE_CHANGED ).toBe( 'xmpp.localrole_changed' );
41
+        expect( XMPPEvents.MEETING_ID_SET ).toBe( 'xmpp.meeting_id_set' );
42
+        expect( XMPPEvents.MESSAGE_RECEIVED ).toBe( 'xmpp.message_received' );
43
+        expect( XMPPEvents.INVITE_MESSAGE_RECEIVED ).toBe( 'xmpp.invite_message_received' );
44
+        expect( XMPPEvents.PRIVATE_MESSAGE_RECEIVED ).toBe( 'xmpp.private_message_received' );
45
+        expect( XMPPEvents.MUC_MEMBER_BOT_TYPE_CHANGED ).toBe( 'xmpp.muc_member_bot_type_changed' );
46
+        expect( XMPPEvents.MUC_DESTROYED ).toBe( 'xmpp.muc_destroyed' );
47
+        expect( XMPPEvents.MUC_JOIN_IN_PROGRESS ).toBe( 'xmpp.muc_join_in_progress' );
48
+        expect( XMPPEvents.MUC_JOINED ).toBe( 'xmpp.muc_joined' );
49
+        expect( XMPPEvents.MUC_MEMBER_JOINED ).toBe( 'xmpp.muc_member_joined' );
50
+        expect( XMPPEvents.MUC_MEMBER_LEFT ).toBe( 'xmpp.muc_member_left' );
51
+        expect( XMPPEvents.MUC_LOBBY_MEMBER_JOINED ).toBe( 'xmpp.muc_lobby_member_joined' );
52
+        expect( XMPPEvents.MUC_LOBBY_MEMBER_UPDATED ).toBe( 'xmpp.muc_lobby_member_updated' );
53
+        expect( XMPPEvents.MUC_LOBBY_MEMBER_LEFT ).toBe( 'xmpp.muc_lobby_member_left' );
54
+        expect( XMPPEvents.MUC_DENIED_ACCESS ).toBe( 'xmpp.muc_denied access' );
55
+        expect( XMPPEvents.MUC_LEFT ).toBe( 'xmpp.muc_left' );
56
+        expect( XMPPEvents.MUC_ROLE_CHANGED ).toBe( 'xmpp.muc_role_changed' );
57
+        expect( XMPPEvents.MUC_LOCK_CHANGED ).toBe( 'xmpp.muc_lock_changed' );
58
+        expect( XMPPEvents.MUC_MEMBERS_ONLY_CHANGED ).toBe( 'xmpp.muc_members_only_changed' );
59
+        expect( XMPPEvents.PARTICIPANT_AUDIO_MUTED ).toBe( 'xmpp.audio_muted' );
60
+        expect( XMPPEvents.PARTICIPANT_VIDEO_MUTED ).toBe( 'xmpp.video_muted' );
61
+        expect( XMPPEvents.PARTICIPANT_VIDEO_TYPE_CHANGED ).toBe( 'xmpp.video_type' );
62
+        expect( XMPPEvents.PARTICIPANT_FEATURES_CHANGED ).toBe( 'xmpp.participant_features_changed' );
63
+        expect( XMPPEvents.PASSWORD_REQUIRED ).toBe( 'xmpp.password_required' );
64
+        expect( XMPPEvents.PHONE_NUMBER_CHANGED ).toBe( 'conference.phoneNumberChanged' );
65
+        expect( XMPPEvents.PRESENCE_RECEIVED ).toBe( 'xmpp.presence_received' );
66
+        expect( XMPPEvents.PRESENCE_STATUS ).toBe( 'xmpp.presence_status' );
67
+        expect( XMPPEvents.PROMPT_FOR_LOGIN ).toBe( 'xmpp.prompt_for_login' );
68
+        expect( XMPPEvents.READY_TO_JOIN ).toBe( 'xmpp.ready_to_join' );
69
+        expect( XMPPEvents.RECORDER_STATE_CHANGED ).toBe( 'xmpp.recorderStateChanged' );
70
+        expect( XMPPEvents.REMOTE_STATS ).toBe( 'xmpp.remote_stats' );
71
+        expect( XMPPEvents.RENEGOTIATION_FAILED ).toBe( 'xmpp.renegotiation_failed' );
72
+        expect( XMPPEvents.RESERVATION_ERROR ).toBe( 'xmpp.room_reservation_error' );
73
+        expect( XMPPEvents.ROOM_CONNECT_ERROR ).toBe( 'xmpp.room_connect_error' );
74
+        expect( XMPPEvents.ROOM_CONNECT_NOT_ALLOWED_ERROR ).toBe( 'xmpp.room_connect_error.not_allowed' );
75
+        expect( XMPPEvents.ROOM_JOIN_ERROR ).toBe( 'xmpp.room_join_error' );
76
+        expect( XMPPEvents.ROOM_CONNECT_MEMBERS_ONLY_ERROR ).toBe( 'xmpp.room_connect_error.members_only' );
77
+        expect( XMPPEvents.ROOM_MAX_USERS_ERROR ).toBe( 'xmpp.room_max_users_error' );
78
+        expect( XMPPEvents.SENDING_CHAT_MESSAGE ).toBe( 'xmpp.sending_chat_message' );
79
+        expect( XMPPEvents.SENDING_PRIVATE_CHAT_MESSAGE ).toBe( 'xmpp.sending_private_chat_message' );
80
+        expect( XMPPEvents.SESSION_ACCEPT ).toBe( 'xmpp.session_accept' );
81
+        expect( XMPPEvents.SESSION_ACCEPT_ERROR ).toBe( 'xmpp.session_accept_error' );
82
+        expect( XMPPEvents.SESSION_ACCEPT_TIMEOUT ).toBe( 'xmpp.session_accept_timeout' );
83
+        expect( XMPPEvents.SOURCE_ADD ).toBe( 'xmpp.source_add' );
84
+        expect( XMPPEvents.SOURCE_ADD_ERROR ).toBe( 'xmpp.source_add_error' );
85
+        expect( XMPPEvents.SOURCE_REMOVE ).toBe( 'xmpp.source_remove' );
86
+        expect( XMPPEvents.SOURCE_REMOVE_ERROR ).toBe( 'xmpp.source_remove_error' );
87
+        expect( XMPPEvents.SPEAKER_STATS_RECEIVED ).toBe( 'xmpp.speaker_stats_received' );
88
+        expect( XMPPEvents.CONFERENCE_TIMESTAMP_RECEIVED ).toBe( 'xmpp.conference_timestamp_received' );
89
+        expect( XMPPEvents.AV_MODERATION_APPROVED ).toBe( 'xmpp.av_moderation.approved' );
90
+        expect( XMPPEvents.AV_MODERATION_REJECTED ).toBe( 'xmpp.av_moderation.rejected' );
91
+        expect( XMPPEvents.AV_MODERATION_RECEIVED ).toBe( 'xmpp.av_moderation.received' );
92
+        expect( XMPPEvents.AV_MODERATION_CHANGED ).toBe( 'xmpp.av_moderation.changed' );
93
+        expect( XMPPEvents.AV_MODERATION_PARTICIPANT_APPROVED ).toBe( 'xmpp.av_moderation.participant.approved' );
94
+        expect( XMPPEvents.AV_MODERATION_PARTICIPANT_REJECTED ).toBe( 'xmpp.av_moderation.participant.rejected' );
95
+        expect( XMPPEvents.BREAKOUT_ROOMS_MOVE_TO_ROOM ).toBe( 'xmpp.breakout-rooms.move-to-room' );
96
+        expect( XMPPEvents.BREAKOUT_ROOMS_EVENT ).toBe( 'xmpp.breakout-rooms.event' );
97
+        expect( XMPPEvents.BREAKOUT_ROOMS_UPDATED ).toBe( 'xmpp.breakout-rooms.updated' );
98
+        expect( XMPPEvents.START_MUTED_FROM_FOCUS ).toBe( 'xmpp.start_muted_from_focus' );
99
+        expect( XMPPEvents.SUBJECT_CHANGED ).toBe( 'xmpp.subject_changed' );
100
+        expect( XMPPEvents.SUSPEND_DETECTED ).toBe( 'xmpp.suspend_detected' );
101
+        expect( XMPPEvents.TRANSCRIPTION_STATUS_CHANGED ).toBe( 'xmpp.transcription_status_changed' );
102
+        expect( XMPPEvents.TRANSPORT_INFO ).toBe( 'xmpp.transportinfo.jingle' );
103
+        expect( XMPPEvents.VIDEO_SIP_GW_AVAILABILITY_CHANGED ).toBe( 'xmpp.videoSIPGWAvailabilityChanged' );
104
+        expect( XMPPEvents.VIDEO_SIP_GW_SESSION_STATE_CHANGED ).toBe( 'xmpp.videoSIPGWSessionStateChanged' );
105
+        expect( XMPPEvents.ICE_CONNECTION_STATE_CHANGED ).toBe( 'xmpp.ice_connection_state_changed' );
106
+        expect( XMPPEvents.JSON_MESSAGE_RECEIVED ).toBe( 'xmmp.json_message_received' );
298 107
     } );
299 108
 
300 109
     it( "unknown members", () => {

service/xmpp/XMPPEvents.js → service/xmpp/XMPPEvents.ts Visa fil

@@ -1,244 +1,244 @@
1
-const XMPPEvents = {
1
+export enum XMPPEvents {
2 2
     /**
3 3
      * Indicates error while adding ice candidate.
4 4
      */
5
-    ADD_ICE_CANDIDATE_FAILED: 'xmpp.add_ice_candidate_failed',
5
+    ADD_ICE_CANDIDATE_FAILED = 'xmpp.add_ice_candidate_failed',
6 6
 
7 7
     // Designates an event indicating that the focus has asked us to mute our
8 8
     // audio.
9
-    AUDIO_MUTED_BY_FOCUS: 'xmpp.audio_muted_by_focus',
9
+    AUDIO_MUTED_BY_FOCUS = 'xmpp.audio_muted_by_focus',
10 10
 
11 11
     // Designates an event indicating that the focus has asked us to disable our
12 12
     // camera.
13
-    VIDEO_MUTED_BY_FOCUS: 'xmpp.video_muted_by_focus',
14
-    AUTHENTICATION_REQUIRED: 'xmpp.authentication_required',
15
-    BRIDGE_DOWN: 'xmpp.bridge_down',
13
+    VIDEO_MUTED_BY_FOCUS = 'xmpp.video_muted_by_focus',
14
+    AUTHENTICATION_REQUIRED = 'xmpp.authentication_required',
15
+    BRIDGE_DOWN = 'xmpp.bridge_down',
16 16
 
17 17
     /**
18 18
      * Triggered when 'session-accept' is received from the responder.
19 19
      */
20
-    CALL_ACCEPTED: 'xmpp.callaccepted.jingle',
20
+    CALL_ACCEPTED = 'xmpp.callaccepted.jingle',
21 21
 
22 22
     // Designates an event indicating that an offer (e.g. Jingle
23 23
     // session-initiate) was received.
24
-    CALL_INCOMING: 'xmpp.callincoming.jingle',
24
+    CALL_INCOMING = 'xmpp.callincoming.jingle',
25 25
 
26 26
     // Triggered when Jicofo kills our media session, this can happen while
27 27
     // we're still in the MUC, when it decides to terminate the media session.
28 28
     // For example when the session is idle for too long, because we're the only
29 29
     // person in the conference room.
30
-    CALL_ENDED: 'xmpp.callended.jingle',
31
-    CHAT_ERROR_RECEIVED: 'xmpp.chat_error_received',
32
-    SETTINGS_ERROR_RECEIVED: 'xmpp.settings_error_received',
30
+    CALL_ENDED = 'xmpp.callended.jingle',
31
+    CHAT_ERROR_RECEIVED = 'xmpp.chat_error_received',
32
+    SETTINGS_ERROR_RECEIVED = 'xmpp.settings_error_received',
33 33
 
34 34
     // The conference properties (as advertised by jicofo) have changed
35
-    CONFERENCE_PROPERTIES_CHANGED: 'xmpp.conference_properties_changed',
35
+    CONFERENCE_PROPERTIES_CHANGED = 'xmpp.conference_properties_changed',
36 36
 
37 37
     /**
38 38
      * This event is triggered when the ICE connects for the first time.
39 39
      */
40
-    CONNECTION_ESTABLISHED: 'xmpp.connection.connected',
40
+    CONNECTION_ESTABLISHED = 'xmpp.connection.connected',
41 41
 
42 42
     // Designates an event indicating that the connection to the XMPP server
43 43
     // failed.
44
-    CONNECTION_FAILED: 'xmpp.connection.failed',
44
+    CONNECTION_FAILED = 'xmpp.connection.failed',
45 45
 
46 46
     // Designates an event indicating that the media (ICE) connection was
47 47
     // interrupted. This should go to the RTC module.
48
-    CONNECTION_INTERRUPTED: 'xmpp.connection.interrupted',
48
+    CONNECTION_INTERRUPTED = 'xmpp.connection.interrupted',
49 49
 
50 50
     // Designates an event indicating that the media (ICE) connection was
51 51
     // restored. This should go to the RTC module.
52
-    CONNECTION_RESTORED: 'xmpp.connection.restored',
52
+    CONNECTION_RESTORED = 'xmpp.connection.restored',
53 53
 
54 54
     // Designates an event indicating that the media (ICE) connection failed.
55 55
     // This should go to the RTC module.
56
-    CONNECTION_ICE_FAILED: 'xmpp.connection.ice.failed',
56
+    CONNECTION_ICE_FAILED = 'xmpp.connection.ice.failed',
57 57
 
58 58
     // Designates an event indicating that the call has been migrated to a different
59 59
     // bridge and that the client needs to be restarted for a successful transition.
60
-    CONNECTION_RESTARTED: 'xmpp.connection.restart',
60
+    CONNECTION_RESTARTED = 'xmpp.connection.restart',
61 61
 
62 62
     /**
63 63
      * Designates an event indicating connection status changes.
64 64
      */
65
-    CONNECTION_STATUS_CHANGED: 'xmpp.connection.status.changed',
65
+    CONNECTION_STATUS_CHANGED = 'xmpp.connection.status.changed',
66 66
 
67 67
     // Designates an event indicating that the display name of a participant
68 68
     // has changed.
69
-    DISPLAY_NAME_CHANGED: 'xmpp.display_name_changed',
69
+    DISPLAY_NAME_CHANGED = 'xmpp.display_name_changed',
70 70
 
71 71
     /**
72 72
      * Chat room instance have been added to Strophe.emuc plugin.
73 73
      */
74
-    EMUC_ROOM_ADDED: 'xmpp.emuc_room_added',
74
+    EMUC_ROOM_ADDED = 'xmpp.emuc_room_added',
75 75
 
76 76
     /**
77 77
      * Chat room instance have been removed from Strophe.emuc plugin.
78 78
      */
79
-    EMUC_ROOM_REMOVED: 'xmpp.emuc_room_removed',
80
-    ETHERPAD: 'xmpp.etherpad',
81
-    FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
82
-    FOCUS_LEFT: 'xmpp.focus_left',
83
-    GRACEFUL_SHUTDOWN: 'xmpp.graceful_shutdown',
79
+    EMUC_ROOM_REMOVED = 'xmpp.emuc_room_removed',
80
+    ETHERPAD = 'xmpp.etherpad',
81
+    FOCUS_DISCONNECTED = 'xmpp.focus_disconnected',
82
+    FOCUS_LEFT = 'xmpp.focus_left',
83
+    GRACEFUL_SHUTDOWN = 'xmpp.graceful_shutdown',
84 84
 
85 85
     /**
86 86
      * Event fired when 'transport-replace' Jingle message has been received,
87 87
      * before the new offer is set on the PeerConnection.
88 88
      */
89
-    ICE_RESTARTING: 'rtc.ice_restarting',
89
+    ICE_RESTARTING = 'rtc.ice_restarting',
90 90
 
91 91
     /**
92 92
      * Event fired after the 'transport-replace' message has been processed
93 93
      * and the new offer has been set successfully.
94 94
      */
95
-    ICE_RESTART_SUCCESS: 'rtc.ice_restart_success',
95
+    ICE_RESTART_SUCCESS = 'rtc.ice_restart_success',
96 96
 
97 97
     /**
98 98
      * Designates an event indicating that we were kicked from the XMPP MUC.
99 99
      * @param {boolean} isSelfPresence - whether it is for local participant
100 100
      * or another participant.
101
-     * @param {string} actorJid - the jid of the participant who was initator
101
+     * @param {string} actorJid - the jid of the participant who was initiator
102 102
      * of the kick.
103 103
      * @param {?string} participantJid - when it is not a kick for local participant,
104 104
      * this is the jid of the participant which was kicked.
105 105
      */
106
-    KICKED: 'xmpp.kicked',
106
+    KICKED = 'xmpp.kicked',
107 107
 
108 108
     // Designates an event indicating that our role in the XMPP MUC has changed.
109
-    LOCAL_ROLE_CHANGED: 'xmpp.localrole_changed',
109
+    LOCAL_ROLE_CHANGED = 'xmpp.localrole_changed',
110 110
 
111 111
     /**
112 112
      * Event fired when the unique meeting id is set.
113 113
      */
114
-    MEETING_ID_SET: 'xmpp.meeting_id_set',
114
+    MEETING_ID_SET = 'xmpp.meeting_id_set',
115 115
 
116 116
     // Designates an event indicating that an XMPP message in the MUC was
117 117
     // received.
118
-    MESSAGE_RECEIVED: 'xmpp.message_received',
118
+    MESSAGE_RECEIVED = 'xmpp.message_received',
119 119
 
120 120
     // Designates an event indicating that an invite XMPP message in the MUC was
121 121
     // received.
122
-    INVITE_MESSAGE_RECEIVED: 'xmpp.invite_message_received',
122
+    INVITE_MESSAGE_RECEIVED = 'xmpp.invite_message_received',
123 123
 
124 124
     // Designates an event indicating that a private XMPP message in the MUC was
125 125
     // received.
126
-    PRIVATE_MESSAGE_RECEIVED: 'xmpp.private_message_received',
126
+    PRIVATE_MESSAGE_RECEIVED = 'xmpp.private_message_received',
127 127
 
128 128
     // Designates an event indicating that a bot participant type had changed
129
-    MUC_MEMBER_BOT_TYPE_CHANGED: 'xmpp.muc_member_bot_type_changed',
129
+    MUC_MEMBER_BOT_TYPE_CHANGED = 'xmpp.muc_member_bot_type_changed',
130 130
 
131 131
     // Designates an event indicating that the XMPP MUC was destroyed.
132
-    MUC_DESTROYED: 'xmpp.muc_destroyed',
132
+    MUC_DESTROYED = 'xmpp.muc_destroyed',
133 133
 
134 134
     // Designates an event indicating that we are currently in process of joining the XMPP MUC.
135
-    MUC_JOIN_IN_PROGRESS: 'xmpp.muc_join_in_progress',
135
+    MUC_JOIN_IN_PROGRESS = 'xmpp.muc_join_in_progress',
136 136
 
137 137
     // Designates an event indicating that we have joined the XMPP MUC.
138
-    MUC_JOINED: 'xmpp.muc_joined',
138
+    MUC_JOINED = 'xmpp.muc_joined',
139 139
 
140 140
     // Designates an event indicating that a participant joined the XMPP MUC.
141
-    MUC_MEMBER_JOINED: 'xmpp.muc_member_joined',
141
+    MUC_MEMBER_JOINED = 'xmpp.muc_member_joined',
142 142
 
143 143
     // Designates an event indicating that a participant left the XMPP MUC.
144
-    MUC_MEMBER_LEFT: 'xmpp.muc_member_left',
144
+    MUC_MEMBER_LEFT = 'xmpp.muc_member_left',
145 145
 
146 146
     // Designates an event indicating that a participant joined the lobby XMPP MUC.
147
-    MUC_LOBBY_MEMBER_JOINED: 'xmpp.muc_lobby_member_joined',
147
+    MUC_LOBBY_MEMBER_JOINED = 'xmpp.muc_lobby_member_joined',
148 148
 
149 149
     // Designates an event indicating that a participant in the lobby XMPP MUC has been updated
150
-    MUC_LOBBY_MEMBER_UPDATED: 'xmpp.muc_lobby_member_updated',
150
+    MUC_LOBBY_MEMBER_UPDATED = 'xmpp.muc_lobby_member_updated',
151 151
 
152 152
     // Designates an event indicating that a participant left the XMPP MUC.
153
-    MUC_LOBBY_MEMBER_LEFT: 'xmpp.muc_lobby_member_left',
153
+    MUC_LOBBY_MEMBER_LEFT = 'xmpp.muc_lobby_member_left',
154 154
 
155 155
     // Designates an event indicating that a participant was denied access to a conference from the lobby XMPP MUC.
156
-    MUC_DENIED_ACCESS: 'xmpp.muc_denied access',
156
+    MUC_DENIED_ACCESS = 'xmpp.muc_denied access',
157 157
 
158 158
     // Designates an event indicating that local participant left the muc
159
-    MUC_LEFT: 'xmpp.muc_left',
159
+    MUC_LEFT = 'xmpp.muc_left',
160 160
 
161 161
     // Designates an event indicating that the MUC role of a participant has
162 162
     // changed.
163
-    MUC_ROLE_CHANGED: 'xmpp.muc_role_changed',
163
+    MUC_ROLE_CHANGED = 'xmpp.muc_role_changed',
164 164
 
165 165
     // Designates an event indicating that the MUC has been locked or unlocked.
166
-    MUC_LOCK_CHANGED: 'xmpp.muc_lock_changed',
166
+    MUC_LOCK_CHANGED = 'xmpp.muc_lock_changed',
167 167
 
168 168
     // Designates an event indicating that the MUC members only config has changed.
169
-    MUC_MEMBERS_ONLY_CHANGED: 'xmpp.muc_members_only_changed',
169
+    MUC_MEMBERS_ONLY_CHANGED = 'xmpp.muc_members_only_changed',
170 170
 
171 171
     // Designates an event indicating that a participant in the XMPP MUC has
172 172
     // advertised that they have audio muted (or unmuted).
173
-    PARTICIPANT_AUDIO_MUTED: 'xmpp.audio_muted',
173
+    PARTICIPANT_AUDIO_MUTED = 'xmpp.audio_muted',
174 174
 
175 175
     // Designates an event indicating that a participant in the XMPP MUC has
176 176
     // advertised that they have video muted (or unmuted).
177
-    PARTICIPANT_VIDEO_MUTED: 'xmpp.video_muted',
177
+    PARTICIPANT_VIDEO_MUTED = 'xmpp.video_muted',
178 178
 
179 179
     // Designates an event indicating that the video type (e.g. 'camera' or
180 180
     // 'screen') for a participant has changed.
181
-    // Note: currently this event fires every time we receive presence from
181
+    // Note = currently this event fires every time we receive presence from
182 182
     // someone (regardless of whether or not the "video type" changed).
183
-    PARTICIPANT_VIDEO_TYPE_CHANGED: 'xmpp.video_type',
183
+    PARTICIPANT_VIDEO_TYPE_CHANGED = 'xmpp.video_type',
184 184
 
185 185
     /**
186 186
      * Indicates that the features of the participant has been changed.
187 187
      */
188
-    PARTICIPANT_FEATURES_CHANGED: 'xmpp.participant_features_changed',
189
-    PASSWORD_REQUIRED: 'xmpp.password_required',
188
+    PARTICIPANT_FEATURES_CHANGED = 'xmpp.participant_features_changed',
189
+    PASSWORD_REQUIRED = 'xmpp.password_required',
190 190
 
191 191
     /**
192 192
      * Indicates that phone number changed.
193 193
      */
194
-    PHONE_NUMBER_CHANGED: 'conference.phoneNumberChanged',
195
-    PRESENCE_RECEIVED: 'xmpp.presence_received',
196
-    PRESENCE_STATUS: 'xmpp.presence_status',
197
-    PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
194
+    PHONE_NUMBER_CHANGED = 'conference.phoneNumberChanged',
195
+    PRESENCE_RECEIVED = 'xmpp.presence_received',
196
+    PRESENCE_STATUS = 'xmpp.presence_status',
197
+    PROMPT_FOR_LOGIN = 'xmpp.prompt_for_login',
198 198
 
199 199
     // xmpp is connected and obtained user media
200
-    READY_TO_JOIN: 'xmpp.ready_to_join',
200
+    READY_TO_JOIN = 'xmpp.ready_to_join',
201 201
 
202 202
     /**
203 203
      * Indicates that recording state changed.
204 204
      */
205
-    RECORDER_STATE_CHANGED: 'xmpp.recorderStateChanged',
205
+    RECORDER_STATE_CHANGED = 'xmpp.recorderStateChanged',
206 206
 
207 207
     // Designates an event indicating that we received statistics from a
208 208
     // participant in the MUC.
209
-    REMOTE_STATS: 'xmpp.remote_stats',
209
+    REMOTE_STATS = 'xmpp.remote_stats',
210 210
 
211 211
     /**
212 212
      * Indicates that the offer / answer renegotiation has failed.
213 213
      */
214
-    RENEGOTIATION_FAILED: 'xmpp.renegotiation_failed',
215
-    RESERVATION_ERROR: 'xmpp.room_reservation_error',
216
-    ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
217
-    ROOM_CONNECT_NOT_ALLOWED_ERROR: 'xmpp.room_connect_error.not_allowed',
218
-    ROOM_JOIN_ERROR: 'xmpp.room_join_error',
219
-    ROOM_CONNECT_MEMBERS_ONLY_ERROR: 'xmpp.room_connect_error.members_only',
214
+    RENEGOTIATION_FAILED = 'xmpp.renegotiation_failed',
215
+    RESERVATION_ERROR = 'xmpp.room_reservation_error',
216
+    ROOM_CONNECT_ERROR = 'xmpp.room_connect_error',
217
+    ROOM_CONNECT_NOT_ALLOWED_ERROR = 'xmpp.room_connect_error.not_allowed',
218
+    ROOM_JOIN_ERROR = 'xmpp.room_join_error',
219
+    ROOM_CONNECT_MEMBERS_ONLY_ERROR = 'xmpp.room_connect_error.members_only',
220 220
 
221 221
     /**
222 222
      * Indicates that max users limit has been reached.
223 223
      */
224
-    ROOM_MAX_USERS_ERROR: 'xmpp.room_max_users_error',
224
+    ROOM_MAX_USERS_ERROR = 'xmpp.room_max_users_error',
225 225
 
226 226
     // Designates an event indicating that we sent an XMPP message to the MUC.
227
-    SENDING_CHAT_MESSAGE: 'xmpp.sending_chat_message',
227
+    SENDING_CHAT_MESSAGE = 'xmpp.sending_chat_message',
228 228
 
229 229
     // Designates an event indicating that we sent a private XMPP message to
230 230
     // a specific user of the muc.
231
-    SENDING_PRIVATE_CHAT_MESSAGE: 'xmpp.sending_private_chat_message',
231
+    SENDING_PRIVATE_CHAT_MESSAGE = 'xmpp.sending_private_chat_message',
232 232
 
233 233
     /**
234 234
      * Event fired after receiving the confirmation about session accept.
235 235
      */
236
-    SESSION_ACCEPT: 'xmpp.session_accept',
236
+    SESSION_ACCEPT = 'xmpp.session_accept',
237 237
 
238 238
     /**
239 239
      * Event fired if we receive an error after sending the session accept.
240 240
      */
241
-    SESSION_ACCEPT_ERROR: 'xmpp.session_accept_error',
241
+    SESSION_ACCEPT_ERROR = 'xmpp.session_accept_error',
242 242
 
243 243
     /**
244 244
      * Event fired when we do not get our 'session-accept' acknowledged by
@@ -250,94 +250,94 @@ const XMPPEvents = {
250 250
      * Jicofo does send the RESULT immediately without any condition, so missing
251 251
      * packets means that most likely it has never seen our IQ.
252 252
      */
253
-    SESSION_ACCEPT_TIMEOUT: 'xmpp.session_accept_timeout',
253
+    SESSION_ACCEPT_TIMEOUT = 'xmpp.session_accept_timeout',
254 254
 
255 255
     /**
256 256
      * Event fired after successful sending of jingle source-add.
257 257
      */
258
-    SOURCE_ADD: 'xmpp.source_add',
258
+    SOURCE_ADD = 'xmpp.source_add',
259 259
 
260 260
     /**
261 261
      * Event fired after receiving an error sending of jingle source-add.
262 262
      */
263
-    SOURCE_ADD_ERROR: 'xmpp.source_add_error',
263
+    SOURCE_ADD_ERROR = 'xmpp.source_add_error',
264 264
 
265 265
     /**
266 266
      * Event fired after successful sending of jingle source-remove.
267 267
      */
268
-    SOURCE_REMOVE: 'xmpp.source_remove',
268
+    SOURCE_REMOVE = 'xmpp.source_remove',
269 269
 
270 270
     /**
271 271
      * Event fired after receiving an error sending of jingle source-remove.
272 272
      */
273
-    SOURCE_REMOVE_ERROR: 'xmpp.source_remove_error',
273
+    SOURCE_REMOVE_ERROR = 'xmpp.source_remove_error',
274 274
 
275 275
     /**
276 276
      * Event fired when speaker stats update message is received.
277 277
      */
278
-    SPEAKER_STATS_RECEIVED: 'xmpp.speaker_stats_received',
278
+    SPEAKER_STATS_RECEIVED = 'xmpp.speaker_stats_received',
279 279
 
280 280
     /**
281 281
      * Event fired when conference creation timestamp is received.
282 282
      */
283
-    CONFERENCE_TIMESTAMP_RECEIVED: 'xmpp.conference_timestamp_received',
283
+    CONFERENCE_TIMESTAMP_RECEIVED = 'xmpp.conference_timestamp_received',
284 284
 
285 285
     /**
286 286
      * Event fired when we receive a message for AV moderation approved for the local participant.
287 287
      */
288
-    AV_MODERATION_APPROVED: 'xmpp.av_moderation.approved',
288
+    AV_MODERATION_APPROVED = 'xmpp.av_moderation.approved',
289 289
 
290 290
     /**
291 291
     * Event fired when we receive a message for AV moderation rejected for the local participant.
292 292
     */
293
-    AV_MODERATION_REJECTED: 'xmpp.av_moderation.rejected',
293
+    AV_MODERATION_REJECTED = 'xmpp.av_moderation.rejected',
294 294
 
295 295
     /**
296 296
      * Event fired when we receive a message for AV moderation.
297 297
      */
298
-    AV_MODERATION_RECEIVED: 'xmpp.av_moderation.received',
298
+    AV_MODERATION_RECEIVED = 'xmpp.av_moderation.received',
299 299
 
300 300
     /**
301 301
      * Event fired when the moderation enable/disable changes.
302 302
      */
303
-    AV_MODERATION_CHANGED: 'xmpp.av_moderation.changed',
303
+    AV_MODERATION_CHANGED = 'xmpp.av_moderation.changed',
304 304
 
305 305
     /**
306 306
      * Event fired when we receive message that a new jid was approved.
307 307
      */
308
-    AV_MODERATION_PARTICIPANT_APPROVED: 'xmpp.av_moderation.participant.approved',
308
+    AV_MODERATION_PARTICIPANT_APPROVED = 'xmpp.av_moderation.participant.approved',
309 309
 
310 310
     /**
311 311
      * Event fired when we receive message that a new jid was approved.
312 312
      */
313
-    AV_MODERATION_PARTICIPANT_REJECTED: 'xmpp.av_moderation.participant.rejected',
313
+    AV_MODERATION_PARTICIPANT_REJECTED = 'xmpp.av_moderation.participant.rejected',
314 314
 
315 315
     /**
316 316
      * Event fired when a participant is requested to join a given (breakout) room.
317 317
      */
318
-    BREAKOUT_ROOMS_MOVE_TO_ROOM: 'xmpp.breakout-rooms.move-to-room',
318
+    BREAKOUT_ROOMS_MOVE_TO_ROOM = 'xmpp.breakout-rooms.move-to-room',
319 319
 
320 320
     /**
321 321
      * Event fired when we receive a message for breakout rooms.
322 322
      */
323
-    BREAKOUT_ROOMS_EVENT: 'xmpp.breakout-rooms.event',
323
+    BREAKOUT_ROOMS_EVENT = 'xmpp.breakout-rooms.event',
324 324
 
325 325
     /**
326 326
      * Event fired when the breakout rooms data was updated.
327 327
      */
328
-    BREAKOUT_ROOMS_UPDATED: 'xmpp.breakout-rooms.updated',
328
+    BREAKOUT_ROOMS_UPDATED = 'xmpp.breakout-rooms.updated',
329 329
 
330 330
     // Designates an event indicating that we should join the conference with
331 331
     // audio and/or video muted.
332
-    START_MUTED_FROM_FOCUS: 'xmpp.start_muted_from_focus',
332
+    START_MUTED_FROM_FOCUS = 'xmpp.start_muted_from_focus',
333 333
 
334 334
     // Designates an event indicating that the subject of the XMPP MUC has
335 335
     // changed.
336
-    SUBJECT_CHANGED: 'xmpp.subject_changed',
336
+    SUBJECT_CHANGED = 'xmpp.subject_changed',
337 337
 
338 338
     // FIXME: how does it belong to XMPP ? - it's detected by the PeerConnection
339 339
     // suspending detected
340
-    SUSPEND_DETECTED: 'xmpp.suspend_detected',
340
+    SUSPEND_DETECTED = 'xmpp.suspend_detected',
341 341
 
342 342
     /**
343 343
      * Notifies for transcription status changes. The event provides the
@@ -345,12 +345,12 @@ const XMPPEvents = {
345 345
      *
346 346
      * @param {String} status - The new status.
347 347
      */
348
-    TRANSCRIPTION_STATUS_CHANGED: 'xmpp.transcription_status_changed',
348
+    TRANSCRIPTION_STATUS_CHANGED = 'xmpp.transcription_status_changed',
349 349
 
350 350
     /**
351 351
      * Event fired when 'transport-info' with new ICE candidates is received.
352 352
      */
353
-    TRANSPORT_INFO: 'xmpp.transportinfo.jingle',
353
+    TRANSPORT_INFO = 'xmpp.transportinfo.jingle',
354 354
 
355 355
     /**
356 356
      * Indicates that video SIP GW state changed.
@@ -358,7 +358,7 @@ const XMPPEvents = {
358 358
      * @param {VideoSIPGWConstants} status - Any of the following statuses:
359 359
      * STATUS_BUSY, STATUS_AVAILABLE or STATUS_UNDEFINED.
360 360
      */
361
-    VIDEO_SIP_GW_AVAILABILITY_CHANGED: 'xmpp.videoSIPGWAvailabilityChanged',
361
+    VIDEO_SIP_GW_AVAILABILITY_CHANGED = 'xmpp.videoSIPGWAvailabilityChanged',
362 362
 
363 363
     /**
364 364
      * Indicates that video SIP GW Session state changed.
@@ -368,18 +368,16 @@ const XMPPEvents = {
368 368
      *
369 369
      * @param {options} event - {address, oldState, newState, displayName}.
370 370
      */
371
-    VIDEO_SIP_GW_SESSION_STATE_CHANGED:
372
-        'xmpp.videoSIPGWSessionStateChanged',
371
+    VIDEO_SIP_GW_SESSION_STATE_CHANGED = 'xmpp.videoSIPGWSessionStateChanged',
373 372
 
374 373
     // Designates an event indicating that the local ICE connection state has
375 374
     // changed.
376
-    ICE_CONNECTION_STATE_CHANGED: 'xmpp.ice_connection_state_changed',
375
+    ICE_CONNECTION_STATE_CHANGED = 'xmpp.ice_connection_state_changed',
377 376
 
378 377
     /**
379 378
      * Event which is emitted when the body in an XMPP message in the MUC
380 379
      * contains JSON
380
+     * TODO: this event contains a typo (xmmp vs xmpp) but it's unlikely this can be changed now
381 381
      */
382
-    JSON_MESSAGE_RECEIVED: 'xmmp.json_message_received'
382
+    JSON_MESSAGE_RECEIVED = 'xmmp.json_message_received'
383 383
 };
384
-
385
-module.exports = XMPPEvents;

+ 239
- 95
types/auto/service/xmpp/XMPPEvents.d.ts Visa fil

@@ -1,95 +1,239 @@
1
-export const ADD_ICE_CANDIDATE_FAILED: string;
2
-export const AUDIO_MUTED_BY_FOCUS: string;
3
-export const VIDEO_MUTED_BY_FOCUS: string;
4
-export const AUTHENTICATION_REQUIRED: string;
5
-export const BRIDGE_DOWN: string;
6
-export const CALL_ACCEPTED: string;
7
-export const CALL_INCOMING: string;
8
-export const CALL_ENDED: string;
9
-export const CHAT_ERROR_RECEIVED: string;
10
-export const SETTINGS_ERROR_RECEIVED: string;
11
-export const CONFERENCE_PROPERTIES_CHANGED: string;
12
-export const CONNECTION_ESTABLISHED: string;
13
-export const CONNECTION_FAILED: string;
14
-export const CONNECTION_INTERRUPTED: string;
15
-export const CONNECTION_RESTORED: string;
16
-export const CONNECTION_ICE_FAILED: string;
17
-export const CONNECTION_RESTARTED: string;
18
-export const CONNECTION_STATUS_CHANGED: string;
19
-export const DISPLAY_NAME_CHANGED: string;
20
-export const EMUC_ROOM_ADDED: string;
21
-export const EMUC_ROOM_REMOVED: string;
22
-export const ETHERPAD: string;
23
-export const FOCUS_DISCONNECTED: string;
24
-export const FOCUS_LEFT: string;
25
-export const GRACEFUL_SHUTDOWN: string;
26
-export const ICE_RESTARTING: string;
27
-export const ICE_RESTART_SUCCESS: string;
28
-export const KICKED: string;
29
-export const LOCAL_ROLE_CHANGED: string;
30
-export const MEETING_ID_SET: string;
31
-export const MESSAGE_RECEIVED: string;
32
-export const INVITE_MESSAGE_RECEIVED: string;
33
-export const PRIVATE_MESSAGE_RECEIVED: string;
34
-export const MUC_MEMBER_BOT_TYPE_CHANGED: string;
35
-export const MUC_DESTROYED: string;
36
-export const MUC_JOIN_IN_PROGRESS: string;
37
-export const MUC_JOINED: string;
38
-export const MUC_MEMBER_JOINED: string;
39
-export const MUC_MEMBER_LEFT: string;
40
-export const MUC_LOBBY_MEMBER_JOINED: string;
41
-export const MUC_LOBBY_MEMBER_UPDATED: string;
42
-export const MUC_LOBBY_MEMBER_LEFT: string;
43
-export const MUC_DENIED_ACCESS: string;
44
-export const MUC_LEFT: string;
45
-export const MUC_ROLE_CHANGED: string;
46
-export const MUC_LOCK_CHANGED: string;
47
-export const MUC_MEMBERS_ONLY_CHANGED: string;
48
-export const PARTICIPANT_AUDIO_MUTED: string;
49
-export const PARTICIPANT_VIDEO_MUTED: string;
50
-export const PARTICIPANT_VIDEO_TYPE_CHANGED: string;
51
-export const PARTICIPANT_FEATURES_CHANGED: string;
52
-export const PASSWORD_REQUIRED: string;
53
-export const PHONE_NUMBER_CHANGED: string;
54
-export const PRESENCE_RECEIVED: string;
55
-export const PRESENCE_STATUS: string;
56
-export const PROMPT_FOR_LOGIN: string;
57
-export const READY_TO_JOIN: string;
58
-export const RECORDER_STATE_CHANGED: string;
59
-export const REMOTE_STATS: string;
60
-export const RENEGOTIATION_FAILED: string;
61
-export const RESERVATION_ERROR: string;
62
-export const ROOM_CONNECT_ERROR: string;
63
-export const ROOM_CONNECT_NOT_ALLOWED_ERROR: string;
64
-export const ROOM_JOIN_ERROR: string;
65
-export const ROOM_CONNECT_MEMBERS_ONLY_ERROR: string;
66
-export const ROOM_MAX_USERS_ERROR: string;
67
-export const SENDING_CHAT_MESSAGE: string;
68
-export const SENDING_PRIVATE_CHAT_MESSAGE: string;
69
-export const SESSION_ACCEPT: string;
70
-export const SESSION_ACCEPT_ERROR: string;
71
-export const SESSION_ACCEPT_TIMEOUT: string;
72
-export const SOURCE_ADD: string;
73
-export const SOURCE_ADD_ERROR: string;
74
-export const SOURCE_REMOVE: string;
75
-export const SOURCE_REMOVE_ERROR: string;
76
-export const SPEAKER_STATS_RECEIVED: string;
77
-export const CONFERENCE_TIMESTAMP_RECEIVED: string;
78
-export const AV_MODERATION_APPROVED: string;
79
-export const AV_MODERATION_REJECTED: string;
80
-export const AV_MODERATION_RECEIVED: string;
81
-export const AV_MODERATION_CHANGED: string;
82
-export const AV_MODERATION_PARTICIPANT_APPROVED: string;
83
-export const AV_MODERATION_PARTICIPANT_REJECTED: string;
84
-export const BREAKOUT_ROOMS_MOVE_TO_ROOM: string;
85
-export const BREAKOUT_ROOMS_EVENT: string;
86
-export const BREAKOUT_ROOMS_UPDATED: string;
87
-export const START_MUTED_FROM_FOCUS: string;
88
-export const SUBJECT_CHANGED: string;
89
-export const SUSPEND_DETECTED: string;
90
-export const TRANSCRIPTION_STATUS_CHANGED: string;
91
-export const TRANSPORT_INFO: string;
92
-export const VIDEO_SIP_GW_AVAILABILITY_CHANGED: string;
93
-export const VIDEO_SIP_GW_SESSION_STATE_CHANGED: string;
94
-export const ICE_CONNECTION_STATE_CHANGED: string;
95
-export const JSON_MESSAGE_RECEIVED: string;
1
+export declare enum XMPPEvents {
2
+    /**
3
+     * Indicates error while adding ice candidate.
4
+     */
5
+    ADD_ICE_CANDIDATE_FAILED = "xmpp.add_ice_candidate_failed",
6
+    AUDIO_MUTED_BY_FOCUS = "xmpp.audio_muted_by_focus",
7
+    VIDEO_MUTED_BY_FOCUS = "xmpp.video_muted_by_focus",
8
+    AUTHENTICATION_REQUIRED = "xmpp.authentication_required",
9
+    BRIDGE_DOWN = "xmpp.bridge_down",
10
+    /**
11
+     * Triggered when 'session-accept' is received from the responder.
12
+     */
13
+    CALL_ACCEPTED = "xmpp.callaccepted.jingle",
14
+    CALL_INCOMING = "xmpp.callincoming.jingle",
15
+    CALL_ENDED = "xmpp.callended.jingle",
16
+    CHAT_ERROR_RECEIVED = "xmpp.chat_error_received",
17
+    SETTINGS_ERROR_RECEIVED = "xmpp.settings_error_received",
18
+    CONFERENCE_PROPERTIES_CHANGED = "xmpp.conference_properties_changed",
19
+    /**
20
+     * This event is triggered when the ICE connects for the first time.
21
+     */
22
+    CONNECTION_ESTABLISHED = "xmpp.connection.connected",
23
+    CONNECTION_FAILED = "xmpp.connection.failed",
24
+    CONNECTION_INTERRUPTED = "xmpp.connection.interrupted",
25
+    CONNECTION_RESTORED = "xmpp.connection.restored",
26
+    CONNECTION_ICE_FAILED = "xmpp.connection.ice.failed",
27
+    CONNECTION_RESTARTED = "xmpp.connection.restart",
28
+    /**
29
+     * Designates an event indicating connection status changes.
30
+     */
31
+    CONNECTION_STATUS_CHANGED = "xmpp.connection.status.changed",
32
+    DISPLAY_NAME_CHANGED = "xmpp.display_name_changed",
33
+    /**
34
+     * Chat room instance have been added to Strophe.emuc plugin.
35
+     */
36
+    EMUC_ROOM_ADDED = "xmpp.emuc_room_added",
37
+    /**
38
+     * Chat room instance have been removed from Strophe.emuc plugin.
39
+     */
40
+    EMUC_ROOM_REMOVED = "xmpp.emuc_room_removed",
41
+    ETHERPAD = "xmpp.etherpad",
42
+    FOCUS_DISCONNECTED = "xmpp.focus_disconnected",
43
+    FOCUS_LEFT = "xmpp.focus_left",
44
+    GRACEFUL_SHUTDOWN = "xmpp.graceful_shutdown",
45
+    /**
46
+     * Event fired when 'transport-replace' Jingle message has been received,
47
+     * before the new offer is set on the PeerConnection.
48
+     */
49
+    ICE_RESTARTING = "rtc.ice_restarting",
50
+    /**
51
+     * Event fired after the 'transport-replace' message has been processed
52
+     * and the new offer has been set successfully.
53
+     */
54
+    ICE_RESTART_SUCCESS = "rtc.ice_restart_success",
55
+    /**
56
+     * Designates an event indicating that we were kicked from the XMPP MUC.
57
+     * @param {boolean} isSelfPresence - whether it is for local participant
58
+     * or another participant.
59
+     * @param {string} actorJid - the jid of the participant who was initiator
60
+     * of the kick.
61
+     * @param {?string} participantJid - when it is not a kick for local participant,
62
+     * this is the jid of the participant which was kicked.
63
+     */
64
+    KICKED = "xmpp.kicked",
65
+    LOCAL_ROLE_CHANGED = "xmpp.localrole_changed",
66
+    /**
67
+     * Event fired when the unique meeting id is set.
68
+     */
69
+    MEETING_ID_SET = "xmpp.meeting_id_set",
70
+    MESSAGE_RECEIVED = "xmpp.message_received",
71
+    INVITE_MESSAGE_RECEIVED = "xmpp.invite_message_received",
72
+    PRIVATE_MESSAGE_RECEIVED = "xmpp.private_message_received",
73
+    MUC_MEMBER_BOT_TYPE_CHANGED = "xmpp.muc_member_bot_type_changed",
74
+    MUC_DESTROYED = "xmpp.muc_destroyed",
75
+    MUC_JOIN_IN_PROGRESS = "xmpp.muc_join_in_progress",
76
+    MUC_JOINED = "xmpp.muc_joined",
77
+    MUC_MEMBER_JOINED = "xmpp.muc_member_joined",
78
+    MUC_MEMBER_LEFT = "xmpp.muc_member_left",
79
+    MUC_LOBBY_MEMBER_JOINED = "xmpp.muc_lobby_member_joined",
80
+    MUC_LOBBY_MEMBER_UPDATED = "xmpp.muc_lobby_member_updated",
81
+    MUC_LOBBY_MEMBER_LEFT = "xmpp.muc_lobby_member_left",
82
+    MUC_DENIED_ACCESS = "xmpp.muc_denied access",
83
+    MUC_LEFT = "xmpp.muc_left",
84
+    MUC_ROLE_CHANGED = "xmpp.muc_role_changed",
85
+    MUC_LOCK_CHANGED = "xmpp.muc_lock_changed",
86
+    MUC_MEMBERS_ONLY_CHANGED = "xmpp.muc_members_only_changed",
87
+    PARTICIPANT_AUDIO_MUTED = "xmpp.audio_muted",
88
+    PARTICIPANT_VIDEO_MUTED = "xmpp.video_muted",
89
+    PARTICIPANT_VIDEO_TYPE_CHANGED = "xmpp.video_type",
90
+    /**
91
+     * Indicates that the features of the participant has been changed.
92
+     */
93
+    PARTICIPANT_FEATURES_CHANGED = "xmpp.participant_features_changed",
94
+    PASSWORD_REQUIRED = "xmpp.password_required",
95
+    /**
96
+     * Indicates that phone number changed.
97
+     */
98
+    PHONE_NUMBER_CHANGED = "conference.phoneNumberChanged",
99
+    PRESENCE_RECEIVED = "xmpp.presence_received",
100
+    PRESENCE_STATUS = "xmpp.presence_status",
101
+    PROMPT_FOR_LOGIN = "xmpp.prompt_for_login",
102
+    READY_TO_JOIN = "xmpp.ready_to_join",
103
+    /**
104
+     * Indicates that recording state changed.
105
+     */
106
+    RECORDER_STATE_CHANGED = "xmpp.recorderStateChanged",
107
+    REMOTE_STATS = "xmpp.remote_stats",
108
+    /**
109
+     * Indicates that the offer / answer renegotiation has failed.
110
+     */
111
+    RENEGOTIATION_FAILED = "xmpp.renegotiation_failed",
112
+    RESERVATION_ERROR = "xmpp.room_reservation_error",
113
+    ROOM_CONNECT_ERROR = "xmpp.room_connect_error",
114
+    ROOM_CONNECT_NOT_ALLOWED_ERROR = "xmpp.room_connect_error.not_allowed",
115
+    ROOM_JOIN_ERROR = "xmpp.room_join_error",
116
+    ROOM_CONNECT_MEMBERS_ONLY_ERROR = "xmpp.room_connect_error.members_only",
117
+    /**
118
+     * Indicates that max users limit has been reached.
119
+     */
120
+    ROOM_MAX_USERS_ERROR = "xmpp.room_max_users_error",
121
+    SENDING_CHAT_MESSAGE = "xmpp.sending_chat_message",
122
+    SENDING_PRIVATE_CHAT_MESSAGE = "xmpp.sending_private_chat_message",
123
+    /**
124
+     * Event fired after receiving the confirmation about session accept.
125
+     */
126
+    SESSION_ACCEPT = "xmpp.session_accept",
127
+    /**
128
+     * Event fired if we receive an error after sending the session accept.
129
+     */
130
+    SESSION_ACCEPT_ERROR = "xmpp.session_accept_error",
131
+    /**
132
+     * Event fired when we do not get our 'session-accept' acknowledged by
133
+     * Jicofo. It most likely means that there is serious problem with our
134
+     * connection or XMPP server and we should reload the conference.
135
+     *
136
+     * We have seen that to happen in BOSH requests race condition when the BOSH
137
+     * request table containing the 'session-accept' was discarded by Prosody.
138
+     * Jicofo does send the RESULT immediately without any condition, so missing
139
+     * packets means that most likely it has never seen our IQ.
140
+     */
141
+    SESSION_ACCEPT_TIMEOUT = "xmpp.session_accept_timeout",
142
+    /**
143
+     * Event fired after successful sending of jingle source-add.
144
+     */
145
+    SOURCE_ADD = "xmpp.source_add",
146
+    /**
147
+     * Event fired after receiving an error sending of jingle source-add.
148
+     */
149
+    SOURCE_ADD_ERROR = "xmpp.source_add_error",
150
+    /**
151
+     * Event fired after successful sending of jingle source-remove.
152
+     */
153
+    SOURCE_REMOVE = "xmpp.source_remove",
154
+    /**
155
+     * Event fired after receiving an error sending of jingle source-remove.
156
+     */
157
+    SOURCE_REMOVE_ERROR = "xmpp.source_remove_error",
158
+    /**
159
+     * Event fired when speaker stats update message is received.
160
+     */
161
+    SPEAKER_STATS_RECEIVED = "xmpp.speaker_stats_received",
162
+    /**
163
+     * Event fired when conference creation timestamp is received.
164
+     */
165
+    CONFERENCE_TIMESTAMP_RECEIVED = "xmpp.conference_timestamp_received",
166
+    /**
167
+     * Event fired when we receive a message for AV moderation approved for the local participant.
168
+     */
169
+    AV_MODERATION_APPROVED = "xmpp.av_moderation.approved",
170
+    /**
171
+    * Event fired when we receive a message for AV moderation rejected for the local participant.
172
+    */
173
+    AV_MODERATION_REJECTED = "xmpp.av_moderation.rejected",
174
+    /**
175
+     * Event fired when we receive a message for AV moderation.
176
+     */
177
+    AV_MODERATION_RECEIVED = "xmpp.av_moderation.received",
178
+    /**
179
+     * Event fired when the moderation enable/disable changes.
180
+     */
181
+    AV_MODERATION_CHANGED = "xmpp.av_moderation.changed",
182
+    /**
183
+     * Event fired when we receive message that a new jid was approved.
184
+     */
185
+    AV_MODERATION_PARTICIPANT_APPROVED = "xmpp.av_moderation.participant.approved",
186
+    /**
187
+     * Event fired when we receive message that a new jid was approved.
188
+     */
189
+    AV_MODERATION_PARTICIPANT_REJECTED = "xmpp.av_moderation.participant.rejected",
190
+    /**
191
+     * Event fired when a participant is requested to join a given (breakout) room.
192
+     */
193
+    BREAKOUT_ROOMS_MOVE_TO_ROOM = "xmpp.breakout-rooms.move-to-room",
194
+    /**
195
+     * Event fired when we receive a message for breakout rooms.
196
+     */
197
+    BREAKOUT_ROOMS_EVENT = "xmpp.breakout-rooms.event",
198
+    /**
199
+     * Event fired when the breakout rooms data was updated.
200
+     */
201
+    BREAKOUT_ROOMS_UPDATED = "xmpp.breakout-rooms.updated",
202
+    START_MUTED_FROM_FOCUS = "xmpp.start_muted_from_focus",
203
+    SUBJECT_CHANGED = "xmpp.subject_changed",
204
+    SUSPEND_DETECTED = "xmpp.suspend_detected",
205
+    /**
206
+     * Notifies for transcription status changes. The event provides the
207
+     * following parameters to its listeners:
208
+     *
209
+     * @param {String} status - The new status.
210
+     */
211
+    TRANSCRIPTION_STATUS_CHANGED = "xmpp.transcription_status_changed",
212
+    /**
213
+     * Event fired when 'transport-info' with new ICE candidates is received.
214
+     */
215
+    TRANSPORT_INFO = "xmpp.transportinfo.jingle",
216
+    /**
217
+     * Indicates that video SIP GW state changed.
218
+     *
219
+     * @param {VideoSIPGWConstants} status - Any of the following statuses:
220
+     * STATUS_BUSY, STATUS_AVAILABLE or STATUS_UNDEFINED.
221
+     */
222
+    VIDEO_SIP_GW_AVAILABILITY_CHANGED = "xmpp.videoSIPGWAvailabilityChanged",
223
+    /**
224
+     * Indicates that video SIP GW Session state changed.
225
+     * The statuses are any of the following statuses:
226
+     * STATE_ON, STATE_OFF, STATE_PENDING, STATE_RETRYING, STATE_FAILED.
227
+     * {@see VideoSIPGWConstants}
228
+     *
229
+     * @param {options} event - {address, oldState, newState, displayName}.
230
+     */
231
+    VIDEO_SIP_GW_SESSION_STATE_CHANGED = "xmpp.videoSIPGWSessionStateChanged",
232
+    ICE_CONNECTION_STATE_CHANGED = "xmpp.ice_connection_state_changed",
233
+    /**
234
+     * Event which is emitted when the body in an XMPP message in the MUC
235
+     * contains JSON
236
+     * TODO: this event contains a typo (xmmp vs xmpp) but it's unlikely this can be changed now
237
+     */
238
+    JSON_MESSAGE_RECEIVED = "xmmp.json_message_received"
239
+}

Laddar…
Avbryt
Spara