其他
IChatroomRejoinedInfo
EnableLogL
IInitOption
IInit
Option
: { appkey
: string; logLevel
?: LogLevel; logOutputLevel
?: EnableLogL; logStdout
?: any; navigators
?: string[]; connectType
?: "websocket" | "comet"; customCMP
?: string[]; detect
?: { url
: string; intervalTime
: number }; debug
?: boolean; indexDBSwitch
?: boolean; checkCA
?: boolean; httpInMainProcess
?: boolean; logExpireTime
: number }Type declaration
appkey: string
Optional logLevel?: LogLevel
Optional logOutputLevel?: EnableLogL
logStdout?:function
- logStdout(logLevel: LogLevel, content: string): void
Parameters
Returns void
Optional navigators?: string[]
Optional connectType?: "websocket" | "comet"
Optional customCMP?: string[]
Optional detect?: { url: string; intervalTime: number }
url: string
intervalTime: number
Optional debug?: boolean
Optional indexDBSwitch?: boolean
Optional checkCA?: boolean
Optional httpInMainProcess?: boolean
logExpireTime: number
init
Parameters
getInstance
Const MESSAGE_DIRECTION
Const CONVERSATION_TYPE
Const FILE_TYPE
Const NOTIFICATION_STATUS
Const CHATROOM_ENTRY_TYPE
Const ERROR_CODE
ERROR_CODE: { [ key in number | string]: number | string } = {}
Const CONNECT_TYPE
CONNECT_TYPE: { COMET: string; WEBSOCKET: string } = ...
Type declaration
COMET: string
WEBSOCKET: string
Const MESSAGS_TIME_ORDER
MESSAGS_TIME_ORDER: { DESC: number; ASC: number } = ...
Const CHATROOM_ORDER
CHATROOM_ORDER: { ASC: number; DESC: number } = ...
Const RECALL_MESSAGE_TYPE
RECALL_MESSAGE_TYPE: "RC:RcCmd" = 'RC:RcCmd'
Const MENTIONED_TYPE
MENTIONED_TYPE: { ALL: number; SINGAL: number } = ...
Type declaration
ALL: number
SINGAL: number
Const MESSAGE_TYPE
MESSAGE_TYPE: { TEXT: string; VOICE: string; HQ_VOICE: string; IMAGE: string; GIF: string; RICH_CONTENT: string; LOCATION: string; FILE: string; SIGHT: string; COMBINE: string; CHRM_KV_NOTIFY: string; LOG_COMMAND: string; EXPANSION_NOTIFY: string; REFERENCE: string } = ...
Type declaration
TEXT: string
VOICE: string
HQ_VOICE: string
IMAGE: string
GIF: string
RICH_CONTENT: string
LOCATION: string
FILE: string
SIGHT: string
COMBINE: string
CHRM_KV_NOTIFY: string
LOG_COMMAND: string
EXPANSION_NOTIFY: string
REFERENCE: string
Const RECEIVED_STATUS
RECEIVED_STATUS: { READ: number; LISTENED: number; DOWNLOADED: number; RETRIEVED: number; UNREAD: number } = ...
Type declaration
READ: number
LISTENED: number
DOWNLOADED: number
RETRIEVED: number
UNREAD: number
Const SDK_VERSION
SDK_VERSION: string = __VERSION__
Const CONNECTION_STATUS
CONNECTION_STATUS: { CONNECTED: number; CONNECTING: number; DISCONNECTED: number; NETWORK_UNAVAILABLE: number; SOCKET_ERROR: number; KICKED_OFFLINE_BY_OTHER_CLIENT: number; BLOCKED: number } = ...
Type declaration
CONNECTED: number
CONNECTING: number
DISCONNECTED: number
NETWORK_UNAVAILABLE: number
SOCKET_ERROR: number
KICKED_OFFLINE_BY_OTHER_CLIENT: number
BLOCKED: number
ISetChatroomEntryOption
ISetChatroomEntryOption: { key: string; value: string; isAutoDelete?: boolean; isSendNotification?: boolean; notificationExtra?: string }
Type declaration
key: string
value: string
Optional isAutoDelete?: boolean
Optional isSendNotification?: boolean
Optional notificationExtra?: string
ISetChatroomEntriesOption
ISetChatroomEntriesOption: { entries: { key: string; value: string }[]; isAutoDelete?: boolean; notificationExtra?: string; isForce?: boolean }
Type declaration
entries: { key: string; value: string }[]
Optional isAutoDelete?: boolean
Optional notificationExtra?: string
Optional isForce?: boolean
IRemoveChatroomEntryOption
IRemoveChatroomEntryOption: { key: string; isSendNotification?: boolean; notificationExtra?: string }
Type declaration
key: string
Optional isSendNotification?: boolean
Optional notificationExtra?: string
GetHistoryMessageOption
GetHistoryMessageOption: { timestamp?: number; count?: number; order?: 0 | 1 }
Type declaration
Optional timestamp?: number
Optional count?: number
Optional order?: 0 | 1
GetHistoryMessageResult
MentionedInfo
MentionedInfo: { type?: 1 | 2; userIdList?: string[] }
Type declaration
Optional type?: 1 | 2
Optional userIdList?: string[]
有效的日志等级声明