@rongcloud/engine 4.5.4-alpha.1 → 4.5.5-enterprise.2
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 +26 -8
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v4.5.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.5.5-enterprise.2
|
|
3
|
+
* CommitId - e6adede2a4aca77ba626cc317bbb4d4895faf00f
|
|
4
|
+
* Fri Jul 22 2022 11:50:59 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -1461,7 +1461,7 @@ declare class DataCodec {
|
|
|
1461
1461
|
/**
|
|
1462
1462
|
* 设置会话状态 (置顶、免打扰)
|
|
1463
1463
|
*/
|
|
1464
|
-
encodeSetConversationStatus(statusList: Array<IServerConversationStatus
|
|
1464
|
+
encodeSetConversationStatus(statusList: Array<IServerConversationStatus>, conversationUpdatedTime: number): any;
|
|
1465
1465
|
/**
|
|
1466
1466
|
* 序列化发送群组已读回执
|
|
1467
1467
|
*/
|
|
@@ -3505,14 +3505,22 @@ declare class APIContext {
|
|
|
3505
3505
|
* 建立连接,连接失败则抛出异常,连接成功后返回用户 userId,否则返回相应的错误码
|
|
3506
3506
|
* @param token
|
|
3507
3507
|
* @param refreshNavi 是否需要重新请求导航,当值为 `false` 时,优先使用有效缓存导航,若缓存失效则重新获取导航
|
|
3508
|
+
* @param reconnectKickEnable 设置断线重连时是否踢出当前正在重连的设备 (仅 Electron 环境有效)
|
|
3509
|
+
* 同一个账号在一台新设备上登录的时候,会把这个账号在之前登录的设备上踢出。
|
|
3510
|
+
由于 SDK 有断线重连功能,存在下面情况。
|
|
3511
|
+
用户在 A 设备登录,A 设备网络不稳定,没有连接成功,SDK 启动重连机制。
|
|
3512
|
+
用户此时又在 B 设备登录,B 设备连接成功。
|
|
3513
|
+
A 设备网络稳定之后,用户在 A 设备连接成功,B 设备被踢出。
|
|
3514
|
+
这个字段就是为这种情况加的。
|
|
3515
|
+
设置 reconnectKickEnable 为 true 时,SDK 重连的时候发现此时已有别的设备连接成功,不再强行踢出已有设备,而是踢出重连设备。
|
|
3508
3516
|
*/
|
|
3509
|
-
connect(token: string, refreshNavi?: boolean): Promise<IConnectResult>;
|
|
3517
|
+
connect(token: string, refreshNavi?: boolean, reconnectKickEnable?: boolean): Promise<IConnectResult>;
|
|
3510
3518
|
/**
|
|
3511
3519
|
* 拉取实时配置 web 端需更新 voipCall 字段
|
|
3512
3520
|
*/
|
|
3513
3521
|
private _pullUserSettings;
|
|
3514
3522
|
disconnect(): Promise<void>;
|
|
3515
|
-
reconnect(): Promise<IConnectResult>;
|
|
3523
|
+
reconnect(reconnectKickEnable?: boolean): Promise<IConnectResult>;
|
|
3516
3524
|
private _getTokenWithoutNavi;
|
|
3517
3525
|
/**
|
|
3518
3526
|
* 获取当前缓存的导航数据
|
|
@@ -3593,6 +3601,10 @@ declare class APIContext {
|
|
|
3593
3601
|
* 清除会话消息未读数
|
|
3594
3602
|
*/
|
|
3595
3603
|
clearUnreadCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
3604
|
+
/**
|
|
3605
|
+
* 清除全部会话消息未读数
|
|
3606
|
+
*/
|
|
3607
|
+
clearAllUnreadCount(): Promise<ErrorCode>;
|
|
3596
3608
|
/**
|
|
3597
3609
|
* 获取指定会话消息未读数
|
|
3598
3610
|
*/
|
|
@@ -3976,8 +3988,9 @@ interface IEngine {
|
|
|
3976
3988
|
* 建立连接
|
|
3977
3989
|
* @param token
|
|
3978
3990
|
* @param naviInfo
|
|
3991
|
+
* @param reconnectKickEnable
|
|
3979
3992
|
*/
|
|
3980
|
-
connect(token: string, naviInfo: INaviInfo,
|
|
3993
|
+
connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
3981
3994
|
/**
|
|
3982
3995
|
* 上报版本信息
|
|
3983
3996
|
* @param version
|
|
@@ -4653,8 +4666,9 @@ declare abstract class AEngine implements IEngine {
|
|
|
4653
4666
|
* 建立连接
|
|
4654
4667
|
* @param token
|
|
4655
4668
|
* @param naviInfo
|
|
4669
|
+
* @param reconnectKickEnable
|
|
4656
4670
|
*/
|
|
4657
|
-
abstract connect(token: string, naviInfo: INaviInfo): Promise<ErrorCode>;
|
|
4671
|
+
abstract connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
4658
4672
|
/**
|
|
4659
4673
|
* 发送SDK版本
|
|
4660
4674
|
* @param versionInfo
|
|
@@ -4775,6 +4789,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
4775
4789
|
* 清除指定会话未读数
|
|
4776
4790
|
*/
|
|
4777
4791
|
abstract clearConversationUnreadCount(conversationType: ConversationType, targetId: string, channelId: string): Promise<ErrorCode>;
|
|
4792
|
+
/**
|
|
4793
|
+
* 清除全部会话未读数
|
|
4794
|
+
*/
|
|
4795
|
+
abstract clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4778
4796
|
/**
|
|
4779
4797
|
* 获取第一个未读消息
|
|
4780
4798
|
*/
|