@rongcloud/engine 4.6.0-beem.5 → 4.6.0-beem.8

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.5
3
- * CommitId - be09ae60f45b2f2e97b0f7897216e2bbfbc6a1c5
4
- * Thu May 12 2022 18:23:09 GMT+0800 (China Standard Time)
2
+ * RCEngine - v4.6.0-beem.8
3
+ * CommitId - 915afd3701d3755bfda48aac9c68e83a66d8d7e3
4
+ * Sat May 28 2022 13:41:36 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 消息
@@ -4753,23 +4734,38 @@ declare abstract class AEngine implements IEngine {
4753
4734
  readonly runtime: IRuntime;
4754
4735
  protected readonly _watcher: IEngineWatcher;
4755
4736
  protected readonly _options: IAPIContextOption;
4756
- /**
4757
- * 当前用户 Id
4758
- */
4759
- currentUserId: string;
4760
4737
  /**
4761
4738
  * 连接时间
4762
4739
  */
4763
4740
  abstract getConnectedTime(): number;
4764
- readonly navi: ANavi;
4765
4741
  protected readonly _appkey: string;
4766
4742
  protected readonly _apiVer: string;
4743
+ protected readonly _apiVersion: string;
4744
+ protected _naviInfo: INaviInfo | null;
4767
4745
  /**
4768
4746
  * 引擎初始化
4769
4747
  * @param _appkey
4770
4748
  */
4771
4749
  constructor(runtime: IRuntime, _watcher: IEngineWatcher, _options: IAPIContextOption);
4772
- protected abstract _createNavi(): ANavi;
4750
+ /**
4751
+ * @param uris
4752
+ * @param appkey
4753
+ * @param token
4754
+ */
4755
+ abstract getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
4756
+ /**
4757
+ * 获取导航数据
4758
+ * @param token
4759
+ * @param dynamicUris token 携带的动态导航地址
4760
+ * @param force 是否强制重新获取并清空缓存数据
4761
+ */
4762
+ getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
4763
+ protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
4764
+ getInfoFromCache(token: string): INaviInfo | null;
4765
+ /**
4766
+ * 清空导航数据:内存数据、缓存数据
4767
+ */
4768
+ private _clear;
4773
4769
  /**
4774
4770
  * 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
4775
4771
  * 对于未实现的方法,接口响应 Unsupport 错误码
@@ -5774,4 +5770,4 @@ declare enum CONNECTION_TYPE {
5774
5770
  */
5775
5771
  declare const version: string;
5776
5772
 
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 };
5773
+ 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 };