@ejfdelgado/ejflab-back 1.34.1 → 1.34.2
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/package.json
CHANGED
|
@@ -55,6 +55,7 @@ export class DisconnectProcessor extends GenericProcessor {
|
|
|
55
55
|
|
|
56
56
|
async execute(args) {
|
|
57
57
|
const socketId = this.socket.id;
|
|
58
|
+
console.log(`DisconnectProcessor "${socketId}"`);
|
|
58
59
|
// Busco los sources
|
|
59
60
|
const room = this.context.getRoomFromSocket(this.socket);
|
|
60
61
|
const instance = await this.context.getFlowChartExec(room);
|
|
@@ -6,7 +6,7 @@ export class RegisterSessionProcessor extends GenericProcessor {
|
|
|
6
6
|
super(context, io, socket);
|
|
7
7
|
}
|
|
8
8
|
execute(args) {
|
|
9
|
-
|
|
9
|
+
console.log(`RegisterSessionProcessor... ${JSON.stringify(args)}`);
|
|
10
10
|
const sessionsData = this.context.sessionsByProvider;
|
|
11
11
|
const { socketId, sessionId, provider } = args;
|
|
12
12
|
if (!(provider in sessionsData)) {
|
|
@@ -32,7 +32,7 @@ export class RegisterSessionProcessor extends GenericProcessor {
|
|
|
32
32
|
userSessions.sessions[sessionId] = socketId;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
console.log(JSON.stringify(sessionsData, null, 4));
|
|
36
36
|
// Notify all sockets the amount of sessions
|
|
37
37
|
const allSockets = Object.keys(sessionsData[provider].sockets);
|
|
38
38
|
const count = allSockets.length;
|
|
@@ -6,7 +6,7 @@ export class UnregisterSessionProcessor extends GenericProcessor {
|
|
|
6
6
|
super(context, io, socket);
|
|
7
7
|
}
|
|
8
8
|
execute(args) {
|
|
9
|
-
|
|
9
|
+
console.log(`UnregisterSessionProcessor... ${JSON.stringify(args)}`);
|
|
10
10
|
const sessionsData = this.context.sessionsByProvider;
|
|
11
11
|
const { socketId, provider } = args;
|
|
12
12
|
if ((provider in sessionsData)) {
|
|
@@ -19,7 +19,7 @@ export class UnregisterSessionProcessor extends GenericProcessor {
|
|
|
19
19
|
delete sockets[socketId];
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
console.log(JSON.stringify(sessionsData, null, 4));
|
|
23
23
|
const allSockets = Object.keys(sessionsData[provider].sockets);
|
|
24
24
|
const count = allSockets.length;
|
|
25
25
|
for (let i = 0; i < allSockets.length; i++) {
|