@rongcloud/engine 4.5.2 → 4.5.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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCEngine - v4.5.2
3
- * CommitId - ba81ca4a531f2c59a5e2f0cecb5e05aab7e03210
4
- * Thu Nov 25 2021 10:37:04 GMT+0800 (China Standard Time)
2
+ * RCEngine - v4.5.3
3
+ * CommitId - 53f04162f2b6042fd1f3d893800fcb85ecf4ff9e
4
+ * Thu Dec 09 2021 18:05:37 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  /**
@@ -558,12 +558,17 @@ interface IUserProfile {
558
558
  name?: string;
559
559
  /**
560
560
  * 用户头像地址
561
+ * @deprecated
561
562
  */
562
563
  portraitUri?: string;
563
564
  /**
564
565
  * user info 中附加信息
565
566
  */
566
567
  extra?: string;
568
+ /**
569
+ * 用户头像地址(向移动端兼容)
570
+ */
571
+ portrait?: string;
567
572
  }
568
573
  /**
569
574
  * 发送消息时的可选项信息
@@ -1852,6 +1857,10 @@ declare class WebSocketChannel extends ADataChannel {
1852
1857
  * @param apiVersion - apiVersion 需符合 `/\d+(\.\d+){2}/` 规则
1853
1858
  */
1854
1859
  connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
1860
+ /**
1861
+ * 发起连接请求
1862
+ */
1863
+ private _connect;
1855
1864
  /**
1856
1865
  * 当前累计心跳超时次数
1857
1866
  */
@@ -1901,6 +1910,7 @@ declare class CometChannel extends ADataChannel {
1901
1910
  * @returns
1902
1911
  */
1903
1912
  connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
1913
+ private _connect;
1904
1914
  private _idCount;
1905
1915
  private _generateMessageId;
1906
1916
  sendCometData(writer: BaseWriter, timeout?: number): Promise<void>;