@agilemotion/oui-react-js 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SocketManager.js +11 -2
- package/dist/js/Media.js +7 -0
- package/package.json +1 -1
|
@@ -35,6 +35,8 @@ class SocketManager {
|
|
|
35
35
|
return new Promise((resolve, reject) => {
|
|
36
36
|
if (this.socket) {
|
|
37
37
|
let response = this.socket.emit(eventType, data, data => {
|
|
38
|
+
console.error("EMITTING EVENT RESULT : " + eventType, data);
|
|
39
|
+
|
|
38
40
|
if (data.status === 'SUCCESS') {
|
|
39
41
|
resolve(data);
|
|
40
42
|
} else {
|
|
@@ -126,8 +128,11 @@ class SocketManager {
|
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
registerOnline() {
|
|
131
|
+
console.log('***** FETCHIN SOCKET MANAGER USER PROFILE *****');
|
|
129
132
|
(0, _RestUtils.sendRequest)(_RestUtils.location + _ApplicationManager.default.getContextRoot() + '/auth/api/v1/user/find', response => {
|
|
130
133
|
this.profile = response.profile;
|
|
134
|
+
console.log("PROFILE : ", response);
|
|
135
|
+
console.log("REGISTERING ONLINE");
|
|
131
136
|
this.emitEvent(_SocketRequest.default.REGISTER_ONLINE, {
|
|
132
137
|
user: {
|
|
133
138
|
userId: response.username,
|
|
@@ -135,14 +140,18 @@ class SocketManager {
|
|
|
135
140
|
},
|
|
136
141
|
orgCode: response.profile
|
|
137
142
|
}).then(data => {
|
|
143
|
+
console.log("REGISTERED ONLINE - " + response.username);
|
|
138
144
|
this.connected = true;
|
|
139
145
|
let event = this.createEvent();
|
|
140
146
|
|
|
141
147
|
_VCEventManager.default.fireEvent(_EventType.default.SOCKET_CONNECT, event);
|
|
142
148
|
}).catch(exp => {
|
|
143
|
-
console.log(exp
|
|
149
|
+
console.log(exp);
|
|
144
150
|
});
|
|
145
|
-
}, e => {
|
|
151
|
+
}, e => {
|
|
152
|
+
console.log("ERROR FETCHING PROFILE");
|
|
153
|
+
console.log(e);
|
|
154
|
+
});
|
|
146
155
|
}
|
|
147
156
|
|
|
148
157
|
createEvent(data = null) {
|
package/dist/js/Media.js
CHANGED
|
@@ -44,15 +44,22 @@ class Media {
|
|
|
44
44
|
askToJoin: calendarEvent.askToJoin,
|
|
45
45
|
meetingId: calendarEvent.id
|
|
46
46
|
}).then(result => {
|
|
47
|
+
console.log("***** JOIN MEETING RESPONSE *****", result);
|
|
47
48
|
let outcome = result.outcome;
|
|
48
49
|
resolve(outcome);
|
|
49
50
|
|
|
50
51
|
if (outcome === _SocketResponse.default.JOIN_MEETING_PERMIT) {
|
|
51
52
|
_Observable.default.fireEvent(_VCEventType.VCEventType.JOIN_MEETING_PERMIT, event);
|
|
52
53
|
}
|
|
54
|
+
}).catch(e => {
|
|
55
|
+
console.log("***** JOIN MEETING ERROR *****");
|
|
56
|
+
console.log(e);
|
|
57
|
+
reject(e);
|
|
53
58
|
});
|
|
54
59
|
}
|
|
55
60
|
} catch (e) {
|
|
61
|
+
console.log("***** REQUEST TO JOIN MEETING ERROR *****");
|
|
62
|
+
console.log(e);
|
|
56
63
|
reject(e);
|
|
57
64
|
}
|
|
58
65
|
});
|