@rongcloud/engine 4.4.8-enterprise.1 → 4.4.8-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 +16 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- 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.4.8-enterprise.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.4.8-enterprise.2
|
|
3
|
+
* CommitId - bbd1ce6836028953773821c2b3b9ab8199bc732f
|
|
4
|
+
* Thu Dec 30 2021 17:52:45 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -1755,6 +1755,10 @@ declare class WebSocketChannel extends ADataChannel {
|
|
|
1755
1755
|
* @param apiVersion - apiVersion 需符合 `/\d+(\.\d+){2}/` 规则
|
|
1756
1756
|
*/
|
|
1757
1757
|
connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string): Promise<ErrorCode>;
|
|
1758
|
+
/**
|
|
1759
|
+
* 发起连接请求
|
|
1760
|
+
*/
|
|
1761
|
+
private _connect;
|
|
1758
1762
|
/**
|
|
1759
1763
|
* 当前累计心跳超时次数
|
|
1760
1764
|
*/
|
|
@@ -1799,6 +1803,7 @@ declare class CometChannel extends ADataChannel {
|
|
|
1799
1803
|
*/
|
|
1800
1804
|
_startPullSignal(protocol: 'http' | 'https'): Promise<void>;
|
|
1801
1805
|
connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string): Promise<ErrorCode>;
|
|
1806
|
+
private _connect;
|
|
1802
1807
|
private _idCount;
|
|
1803
1808
|
private _generateMessageId;
|
|
1804
1809
|
sendCometData(writer: BaseWriter, timeout?: number): Promise<void>;
|
|
@@ -3335,6 +3340,10 @@ declare class APIContext {
|
|
|
3335
3340
|
* 清除会话消息未读数
|
|
3336
3341
|
*/
|
|
3337
3342
|
clearUnreadCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
3343
|
+
/**
|
|
3344
|
+
* 清除全部会话消息未读数
|
|
3345
|
+
*/
|
|
3346
|
+
clearAllUnreadCount(): Promise<ErrorCode>;
|
|
3338
3347
|
/**
|
|
3339
3348
|
* 获取指定会话消息未读数
|
|
3340
3349
|
*/
|
|
@@ -4487,6 +4496,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
4487
4496
|
* 清除指定会话未读数
|
|
4488
4497
|
*/
|
|
4489
4498
|
abstract clearConversationUnreadCount(conversationType: ConversationType, targetId: string, channelId: string): Promise<ErrorCode>;
|
|
4499
|
+
/**
|
|
4500
|
+
* 清除全部会话未读数
|
|
4501
|
+
*/
|
|
4502
|
+
abstract clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4490
4503
|
/**
|
|
4491
4504
|
* 获取第一个未读消息
|
|
4492
4505
|
*/
|