@rongcloud/engine 5.0.1-custom-qihoo.3 → 5.0.1
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 +14 -4
- 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 - v5.0.1
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v5.0.1
|
|
3
|
+
* CommitId - f1a9d10a1360d232524dd1508679c3094111f838
|
|
4
|
+
* Thu Dec 09 2021 19:34:03 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -876,6 +876,10 @@ interface ISendMsgOptions {
|
|
|
876
876
|
* 20 个字符长度限制
|
|
877
877
|
*/
|
|
878
878
|
channelId?: string;
|
|
879
|
+
/**
|
|
880
|
+
* 客户端的消息标识
|
|
881
|
+
*/
|
|
882
|
+
messageId?: string;
|
|
879
883
|
}
|
|
880
884
|
interface IInsertMsgOptions {
|
|
881
885
|
senderUserId: string;
|
|
@@ -1269,7 +1273,7 @@ declare enum ErrorCode {
|
|
|
1269
1273
|
*/
|
|
1270
1274
|
EXPANSION_LIMIT_EXCEET = 34010,
|
|
1271
1275
|
/**
|
|
1272
|
-
*
|
|
1276
|
+
* 消息不支持扩展,原消息 canIncludeExpansion 值为 false (错误码与移动端对齐)
|
|
1273
1277
|
*/
|
|
1274
1278
|
MESSAGE_KV_NOT_SUPPORT = 34008,
|
|
1275
1279
|
CLEAR_HIS_TIME_ERROR = 34011,
|
|
@@ -2163,6 +2167,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
|
|
|
2163
2167
|
key: string;
|
|
2164
2168
|
value: string;
|
|
2165
2169
|
}[];
|
|
2170
|
+
kvEntries: IServerRTCRoomEntry[];
|
|
2166
2171
|
}
|
|
2167
2172
|
interface KVString {
|
|
2168
2173
|
[key: string]: string;
|
|
@@ -3684,6 +3689,10 @@ declare class WebSocketChannel extends ADataChannel {
|
|
|
3684
3689
|
* @param apiVersion - apiVersion 需符合 `/\d+(\.\d+){2}/` 规则
|
|
3685
3690
|
*/
|
|
3686
3691
|
connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
|
|
3692
|
+
/**
|
|
3693
|
+
* 发起连接请求
|
|
3694
|
+
*/
|
|
3695
|
+
private _connect;
|
|
3687
3696
|
/**
|
|
3688
3697
|
* 当前累计心跳超时次数
|
|
3689
3698
|
*/
|
|
@@ -3733,6 +3742,7 @@ declare class CometChannel extends ADataChannel {
|
|
|
3733
3742
|
* @returns
|
|
3734
3743
|
*/
|
|
3735
3744
|
connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
|
|
3745
|
+
private _connect;
|
|
3736
3746
|
private _idCount;
|
|
3737
3747
|
private _generateMessageId;
|
|
3738
3748
|
sendCometData(writer: BaseWriter, timeout?: number): Promise<void>;
|