@zerodensity/realityhub-api 1.15.0 → 1.16.0
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 +1 -1
- package/src/lib/BrokerClient.js +3 -3
package/package.json
CHANGED
package/src/lib/BrokerClient.js
CHANGED
|
@@ -313,9 +313,9 @@ module.exports = class BrokerClient extends BrokerBase {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
case 'unsubscribe': {
|
|
316
|
-
const
|
|
317
|
-
const eventName =
|
|
318
|
-
const targetModuleName =
|
|
316
|
+
const [vendor, moduleName, ...rest] = message.eventName.split(".");
|
|
317
|
+
const eventName = rest.join(".");
|
|
318
|
+
const targetModuleName = [vendor, moduleName].join(".");
|
|
319
319
|
|
|
320
320
|
if (this.moduleName === targetModuleName) {
|
|
321
321
|
this.emit('unsubscribe', { eventName });
|