@rongcloud/engine 4.6.0-beem.6 → 4.6.0-beem.7

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.6.0-beem.6
3
- * CommitId - 8d63e55a9dfc42a2704331082d4d1b7680a2d6ad
4
- * Sat May 14 2022 00:11:05 GMT+0800 (China Standard Time)
2
+ * RCEngine - v4.6.0-beem.7
3
+ * CommitId - 53335a45028994e9963a13ab79a6ea9d6cc95f7f
4
+ * Thu May 26 2022 16:53:40 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  /**
@@ -2333,6 +2333,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
2333
2333
  value: string;
2334
2334
  }[];
2335
2335
  kvEntries: IServerRTCRoomEntry[];
2336
+ offlineKickTime: number;
2336
2337
  }
2337
2338
 
2338
2339
  /**
@@ -3279,6 +3280,14 @@ interface IEngine {
3279
3280
  * @param reconnectKickEnable
3280
3281
  */
3281
3282
  connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
3283
+ /**
3284
+ * 获取导航信息
3285
+ * @param uris
3286
+ * @param appkey
3287
+ * @param token
3288
+ * @param checkCA
3289
+ */
3290
+ getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
3282
3291
  /**
3283
3292
  * 上报版本信息
3284
3293
  * @param version
@@ -4696,34 +4705,6 @@ declare class RTCPluginContext extends PluginContext {
4696
4705
  rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): IPromiseResult<IJoinRTCRoomData>;
4697
4706
  }
4698
4707
 
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
4708
  interface IEngineWatcher {
4728
4709
  /**
4729
4710
  * @param message 消息
@@ -4761,15 +4742,34 @@ declare abstract class AEngine implements IEngine {
4761
4742
  * 连接时间
4762
4743
  */
4763
4744
  abstract getConnectedTime(): number;
4764
- readonly navi: ANavi;
4765
4745
  protected readonly _appkey: string;
4766
4746
  protected readonly _apiVer: string;
4747
+ protected readonly _apiVersion: string;
4748
+ protected _naviInfo: INaviInfo | null;
4767
4749
  /**
4768
4750
  * 引擎初始化
4769
4751
  * @param _appkey
4770
4752
  */
4771
4753
  constructor(runtime: IRuntime, _watcher: IEngineWatcher, _options: IAPIContextOption);
4772
- protected abstract _createNavi(): ANavi;
4754
+ /**
4755
+ * @param uris
4756
+ * @param appkey
4757
+ * @param token
4758
+ */
4759
+ abstract getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
4760
+ /**
4761
+ * 获取导航数据
4762
+ * @param token
4763
+ * @param dynamicUris token 携带的动态导航地址
4764
+ * @param force 是否强制重新获取并清空缓存数据
4765
+ */
4766
+ getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
4767
+ protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
4768
+ getInfoFromCache(token: string): INaviInfo | null;
4769
+ /**
4770
+ * 清空导航数据:内存数据、缓存数据
4771
+ */
4772
+ private _clear;
4773
4773
  /**
4774
4774
  * 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
4775
4775
  * 对于未实现的方法,接口响应 Unsupport 错误码
@@ -5774,4 +5774,4 @@ declare enum CONNECTION_TYPE {
5774
5774
  */
5775
5775
  declare const version: string;
5776
5776
 
5777
- export { AEngine, ANavi, 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 };
5777
+ 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 };