@ejfdelgado/ejflab-back 1.18.4 → 1.19.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-back",
3
- "version": "1.18.4",
3
+ "version": "1.19.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ejfdelgado/ejflab-back.git"
@@ -18,7 +18,7 @@
18
18
  "license": "ISC",
19
19
  "private": false,
20
20
  "dependencies": {
21
- "@ejfdelgado/ejflab-common": "1.11.2",
21
+ "@ejfdelgado/ejflab-common": "1.11.3",
22
22
  "@google-cloud/compute": "^4.7.0",
23
23
  "@google-cloud/firestore": "^7.9.0",
24
24
  "@google-cloud/storage": "^7.11.3",
@@ -6,11 +6,19 @@ export class CloseVideoChatProcessor extends GenericProcessor {
6
6
  super(context, io, socket);
7
7
  }
8
8
  execute(args) {
9
- console.log(`CloseVideoChatProcessor... to ${args.room}`);
10
- //console.log(JSON.stringify(args, null, 4));
11
- // Redirects to other:
12
- this.io.to(args.room).emit("closeVideoChat", {
13
- room: args.room,
14
- });
9
+ if (args.uuid) {
10
+ console.log(`CloseVideoChatProcessor... to ${args.uuid}`);
11
+ // Redirects to other:
12
+ // Translate args.uuid to socketId of args.room
13
+ const socketId = this.context.getSocketIdFromRoomAndUUID("public", args.uuid);
14
+ this.io.to(socketId).emit("closeVideoChat", {
15
+ room: args.room,
16
+ });
17
+ } else {
18
+ console.log(`CloseVideoChatProcessor... to ${args.room}`);
19
+ this.io.to(args.room).emit("closeVideoChat", {
20
+ room: args.room,
21
+ });
22
+ }
15
23
  }
16
24
  }