浏览代码

feat(identity): add region identity parsing

dev1
hmuresan 4 年前
父节点
当前提交
febd9087b9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      modules/xmpp/xmpp.js

+ 4
- 0
modules/xmpp/xmpp.js 查看文件

@@ -445,6 +445,10 @@ export default class XMPP extends Listenable {
445 445
             if (identity.type === 'shard') {
446 446
                 this.options.deploymentInfo.shard = this.connection.shard = identity.name;
447 447
             }
448
+
449
+            if (identity.type === 'region') {
450
+                this.options.deploymentInfo.region = this.connection.region = identity.name;
451
+            }
448 452
         });
449 453
 
450 454
         if (this.avModerationComponentAddress

正在加载...
取消
保存