@rongcloud/engine 4.6.0-beem.6 → 4.6.0-beem.9
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 +44 -40
- 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.6.0-beem.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.6.0-beem.9
|
|
3
|
+
* CommitId - a0cd2903ecedf8ef1d8c5477bc9039c063551176
|
|
4
|
+
* Fri Jun 03 2022 12:32:58 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -908,13 +908,17 @@ declare enum ErrorCode {
|
|
|
908
908
|
*/
|
|
909
909
|
RC_CONN_USER_BLOCKED = 31009,
|
|
910
910
|
/**
|
|
911
|
-
* Disconnect
|
|
911
|
+
* Disconnect,该用户其他设备登录,本端被踢下线;
|
|
912
912
|
*/
|
|
913
913
|
RC_DISCONN_KICK = 31010,
|
|
914
914
|
/**
|
|
915
|
-
* Disconnect
|
|
915
|
+
* Disconnect,连接被服务端主动关闭;
|
|
916
916
|
*/
|
|
917
917
|
RC_DISCONN_EXCEPTION = 31011,
|
|
918
|
+
/**
|
|
919
|
+
* 开启禁止把已在线客户端踢下线开关后,该错误码标识已有同类型端在线,禁止链接;
|
|
920
|
+
*/
|
|
921
|
+
RC_DISCONN_SAME_CLIENT_ON_LINE = 31023,
|
|
918
922
|
/**
|
|
919
923
|
* app 验证Token 验证不通过。所有内部超时,访问失败,返回给客户端sdk都是验证不通过,由服务端日志去看具体是那种失败。
|
|
920
924
|
*/
|
|
@@ -1629,6 +1633,10 @@ declare enum ConnectionStatus {
|
|
|
1629
1633
|
* appkey 不正确
|
|
1630
1634
|
*/
|
|
1631
1635
|
APPKEY_IS_FAKE = 20,
|
|
1636
|
+
/**
|
|
1637
|
+
* 其他端登录,本端禁止连接和重连
|
|
1638
|
+
*/
|
|
1639
|
+
FORBID_RECONNECT_BY_OTHER_SAME_CLIENT = 21,
|
|
1632
1640
|
/**
|
|
1633
1641
|
* 互踢次数过多(`count > 5`),此时可能出现:在其它他设备登陆有 reconnect 逻辑
|
|
1634
1642
|
*/
|
|
@@ -2333,6 +2341,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
|
|
|
2333
2341
|
value: string;
|
|
2334
2342
|
}[];
|
|
2335
2343
|
kvEntries: IServerRTCRoomEntry[];
|
|
2344
|
+
offlineKickTime: number;
|
|
2336
2345
|
}
|
|
2337
2346
|
|
|
2338
2347
|
/**
|
|
@@ -3279,6 +3288,14 @@ interface IEngine {
|
|
|
3279
3288
|
* @param reconnectKickEnable
|
|
3280
3289
|
*/
|
|
3281
3290
|
connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
3291
|
+
/**
|
|
3292
|
+
* 获取导航信息
|
|
3293
|
+
* @param uris
|
|
3294
|
+
* @param appkey
|
|
3295
|
+
* @param token
|
|
3296
|
+
* @param checkCA
|
|
3297
|
+
*/
|
|
3298
|
+
getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
3282
3299
|
/**
|
|
3283
3300
|
* 上报版本信息
|
|
3284
3301
|
* @param version
|
|
@@ -4696,34 +4713,6 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
4696
4713
|
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): IPromiseResult<IJoinRTCRoomData>;
|
|
4697
4714
|
}
|
|
4698
4715
|
|
|
4699
|
-
declare abstract class ANavi {
|
|
4700
|
-
protected readonly _runtime: IRuntime;
|
|
4701
|
-
protected readonly _options: IAPIContextOption;
|
|
4702
|
-
protected readonly _apiVersion: string;
|
|
4703
|
-
protected readonly _appkey: string;
|
|
4704
|
-
protected _naviInfo: INaviInfo | null;
|
|
4705
|
-
constructor(_runtime: IRuntime, _options: IAPIContextOption);
|
|
4706
|
-
/**
|
|
4707
|
-
* @param uris
|
|
4708
|
-
* @param appkey
|
|
4709
|
-
* @param token
|
|
4710
|
-
*/
|
|
4711
|
-
protected abstract _reqNavi(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4712
|
-
/**
|
|
4713
|
-
* 获取导航数据
|
|
4714
|
-
* @param token
|
|
4715
|
-
* @param dynamicUris token 携带的动态导航地址
|
|
4716
|
-
* @param force 是否强制重新获取并清空缓存数据
|
|
4717
|
-
*/
|
|
4718
|
-
getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4719
|
-
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
4720
|
-
getInfoFromCache(token: string): INaviInfo | null;
|
|
4721
|
-
/**
|
|
4722
|
-
* 清空导航数据:内存数据、缓存数据
|
|
4723
|
-
*/
|
|
4724
|
-
private _clear;
|
|
4725
|
-
}
|
|
4726
|
-
|
|
4727
4716
|
interface IEngineWatcher {
|
|
4728
4717
|
/**
|
|
4729
4718
|
* @param message 消息
|
|
@@ -4753,23 +4742,38 @@ declare abstract class AEngine implements IEngine {
|
|
|
4753
4742
|
readonly runtime: IRuntime;
|
|
4754
4743
|
protected readonly _watcher: IEngineWatcher;
|
|
4755
4744
|
protected readonly _options: IAPIContextOption;
|
|
4756
|
-
/**
|
|
4757
|
-
* 当前用户 Id
|
|
4758
|
-
*/
|
|
4759
|
-
currentUserId: string;
|
|
4760
4745
|
/**
|
|
4761
4746
|
* 连接时间
|
|
4762
4747
|
*/
|
|
4763
4748
|
abstract getConnectedTime(): number;
|
|
4764
|
-
readonly navi: ANavi;
|
|
4765
4749
|
protected readonly _appkey: string;
|
|
4766
4750
|
protected readonly _apiVer: string;
|
|
4751
|
+
protected readonly _apiVersion: string;
|
|
4752
|
+
protected _naviInfo: INaviInfo | null;
|
|
4767
4753
|
/**
|
|
4768
4754
|
* 引擎初始化
|
|
4769
4755
|
* @param _appkey
|
|
4770
4756
|
*/
|
|
4771
4757
|
constructor(runtime: IRuntime, _watcher: IEngineWatcher, _options: IAPIContextOption);
|
|
4772
|
-
|
|
4758
|
+
/**
|
|
4759
|
+
* @param uris
|
|
4760
|
+
* @param appkey
|
|
4761
|
+
* @param token
|
|
4762
|
+
*/
|
|
4763
|
+
abstract getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4764
|
+
/**
|
|
4765
|
+
* 获取导航数据
|
|
4766
|
+
* @param token
|
|
4767
|
+
* @param dynamicUris token 携带的动态导航地址
|
|
4768
|
+
* @param force 是否强制重新获取并清空缓存数据
|
|
4769
|
+
*/
|
|
4770
|
+
getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4771
|
+
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
4772
|
+
getInfoFromCache(token: string): INaviInfo | null;
|
|
4773
|
+
/**
|
|
4774
|
+
* 清空导航数据:内存数据、缓存数据
|
|
4775
|
+
*/
|
|
4776
|
+
private _clear;
|
|
4773
4777
|
/**
|
|
4774
4778
|
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
4775
4779
|
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
@@ -5774,4 +5778,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5774
5778
|
*/
|
|
5775
5779
|
declare const version: string;
|
|
5776
5780
|
|
|
5777
|
-
export { AEngine,
|
|
5781
|
+
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEngine, IEngineWatcher, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusListener, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageBlockedListener, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntriesOption, IRemoveChatRoomEntryOption, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|