@wixc3/engine-core-node
Advanced tools
Comparing version 7.8.3 to 7.8.4
@@ -37,6 +37,9 @@ "use strict"; | ||
if (message.origin !== message.from) { | ||
console.warn(`Warning: ${JSON.stringify(message)} has different origin and sender. | ||
This means that the message was forwarded not properly`); | ||
const tenantId = `${socket.id}/${message.origin}`; | ||
this.socketToEnvId.set(tenantId, { socket, clientID: message.origin }); | ||
message.origin = tenantId; | ||
} | ||
message.origin = socket.id; | ||
else { | ||
message.origin = socket.id; | ||
} | ||
message.from = socket.id; | ||
@@ -43,0 +46,0 @@ this.emitMessageHandlers(message); |
{ | ||
"name": "@wixc3/engine-core-node", | ||
"version": "7.8.3", | ||
"version": "7.8.4", | ||
"main": "cjs/index.js", | ||
@@ -15,3 +15,3 @@ "types": "cjs/index.d.ts", | ||
"dependencies": { | ||
"@wixc3/engine-core": "^7.8.3", | ||
"@wixc3/engine-core": "^7.8.4", | ||
"create-listening-server": "^1.0.0", | ||
@@ -18,0 +18,0 @@ "express": "^4.17.1", |
@@ -67,6 +67,8 @@ import { BaseHost } from '@wixc3/engine-core'; | ||
if (message.origin !== message.from) { | ||
console.warn(`Warning: ${JSON.stringify(message)} has different origin and sender. | ||
This means that the message was forwarded not properly`); | ||
const tenantId = `${socket.id}/${message.origin}`; | ||
this.socketToEnvId.set(tenantId, { socket, clientID: message.origin }); | ||
message.origin = tenantId; | ||
} else { | ||
message.origin = socket.id; | ||
} | ||
message.origin = socket.id; | ||
message.from = socket.id; | ||
@@ -73,0 +75,0 @@ this.emitMessageHandlers(message); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11775
180
Updated@wixc3/engine-core@^7.8.4