@ejfdelgado/ejflab-back 1.8.2 → 1.8.3
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 +2 -2
- package/srv/SocketIOCall.mjs +4 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ejfdelgado/ejflab-back",
|
3
|
-
"version": "1.8.
|
3
|
+
"version": "1.8.3",
|
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.7.
|
21
|
+
"@ejfdelgado/ejflab-common": "1.7.2",
|
22
22
|
"@google-cloud/compute": "^4.7.0",
|
23
23
|
"@google-cloud/firestore": "^7.9.0",
|
24
24
|
"@google-cloud/storage": "^7.11.3",
|
package/srv/SocketIOCall.mjs
CHANGED
@@ -174,6 +174,10 @@ export class SocketIOCall {
|
|
174
174
|
return roomMap[uuid];
|
175
175
|
}
|
176
176
|
|
177
|
+
static emitToRoom(room, command, value = {}) {
|
178
|
+
SocketIOCall.io.to(room).emit(command, value);
|
179
|
+
}
|
180
|
+
|
177
181
|
static async unregisterSocket(socket) {
|
178
182
|
delete SocketIOCall.socketIdToSocket[socket.id];
|
179
183
|
const headers = SocketIOCall.getCustomHeaders(socket);
|