@wixc3/engine-core-node
Advanced tools
Comparing version 29.0.0 to 29.0.1
@@ -36,5 +36,2 @@ "use strict"; | ||
const fromId = nameSpace(message.from); | ||
if (message.type === 'listen') { | ||
message.handlerId += originId; | ||
} | ||
this.socketToEnvId.set(fromId, { socket, clientID: message.from }); | ||
@@ -72,7 +69,3 @@ this.socketToEnvId.set(originId, { socket, clientID: message.origin }); | ||
const { socket, clientID } = this.socketToEnvId.get(data.to); | ||
const tenantId = data.to; | ||
data.to = clientID; | ||
if (data.type === 'event') { | ||
data.handlerId = data.handlerId.slice(0, data.handlerId.length - tenantId.length); | ||
} | ||
socket.emit('message', data); | ||
@@ -79,0 +72,0 @@ } |
{ | ||
"name": "@wixc3/engine-core-node", | ||
"version": "29.0.0", | ||
"version": "29.0.1", | ||
"main": "dist/index.js", | ||
@@ -11,3 +11,3 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@wixc3/engine-core": "^29.0.0", | ||
"@wixc3/engine-core": "^29.0.1", | ||
"create-listening-server": "^1.0.0", | ||
@@ -14,0 +14,0 @@ "express": "^4.18.1", |
@@ -32,7 +32,3 @@ import type io from 'socket.io'; | ||
const { socket, clientID } = this.socketToEnvId.get(data.to)!; | ||
const tenantId = data.to; | ||
data.to = clientID; | ||
if (data.type === 'event') { | ||
data.handlerId = data.handlerId.slice(0, data.handlerId.length - tenantId.length); | ||
} | ||
socket.emit('message', data); | ||
@@ -66,5 +62,2 @@ } else { | ||
const fromId = nameSpace(message.from); | ||
if (message.type === 'listen') { | ||
message.handlerId += originId; | ||
} | ||
this.socketToEnvId.set(fromId, { socket, clientID: message.from }); | ||
@@ -71,0 +64,0 @@ this.socketToEnvId.set(originId, { socket, clientID: message.origin }); |
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
23897
399
Updated@wixc3/engine-core@^29.0.1