Type Aliases
IMEventSyncFriendResult
IMEvent
Sync
Friend
Result
: { account
?: string; friend
?: FriendProfile; type
: string }Type declaration
Optional account?: string
type: string
KickOptions
KickOptions: { deviceIds: string[] }
KickResult
KickResult: { deviceIds: string[] }
LoginResult
LoginResult: { aosPushInfo?: { hasTokenPreviously?: boolean; pushType?: number }; appkey?: string; connectionId: string; country?: string; customTag?: string; ip: string; lastLoginDeviceId?: string; port: string }
Type declaration
Optional aosPushInfo?: { hasTokenPreviously?: boolean; pushType?: number }
Optional hasTokenPreviously?: boolean
Optional pushType?: number
Optional appkey?: string
connectionId: string
Optional country?: string
Optional customTag?: string
ip: string
Optional lastLoginDeviceId?: string
port: string
MultiPortLoginResult
Multi
Port
Login
Result
: { account
: string; connectionId
: string; deviceId
: string; ip
: string; mac
: string; online
: boolean; os
: string; time
: number; type
: TClientType }Type declaration
account: string
connectionId: string
deviceId: string
ip: string
mac: string
online: boolean
os: string
time: number
NIMInitializeOptions
NIMInitializeOptions: { account: string; appkey: string; authType?: number; customClientType?: number; debugLevel?: string; isFixedDeviceId?: boolean; lbsUrls?: string[]; linkUrl?: string; needReconnect?: boolean; reconnectionAttempts?: number; token: string }
Type declaration
account: string
appkey: string
Optional authType?: number
Optional customClientType?: number
Optional debugLevel?: string
Optional isFixedDeviceId?: boolean
Optional lbsUrls?: string[]
Optional linkUrl?: string
Optional needReconnect?: boolean
Optional reconnectionAttempts?: number
token: string
NIMOtherOptions
NIMOther
Options
: { cloudStorageConfig
?: { s3
?: any }; serverConfig
?: ServerConfig; sessionConfig
?: { lastMessageFilterFn
?: any; unreadCountFilterFn
?: any }; syncOptions
?: SyncOptions }Type declaration
Optional cloudStorageConfig?: { s3?: any }
Optional sessionConfig?: { lastMessageFilterFn?: any; unreadCountFilterFn?: any }
lastMessageFilterFn?:function
- lastMessageFilterFn(_msg: IMMessage): boolean
Parameters
Returns boolean
unreadCountFilterFn?:function
- unreadCountFilterFn(_msg: IMMessage): boolean
Parameters
Returns boolean
Optional syncOptions?: SyncOptions
ServerConfig
ServerConfig: { chunkUploadHost?: string; commonUploadHost?: string; downloadHostList?: string[]; downloadUrl?: string; nosCdnEnable?: boolean; uploadReplaceFormat?: string }
Type declaration
Optional chunkUploadHost?: string
Optional commonUploadHost?: string
Optional downloadHostList?: string[]
Optional downloadUrl?: string
Optional nosCdnEnable?: boolean
Optional uploadReplaceFormat?: string
SyncOfflineMsgsResult
Sync
Offline
Msgs
Result
: { msgs
: IMMessage[]; sessionId
: string; timetag
: number }Type declaration
sessionId: string
timetag: number
SyncOptions
SyncOptions: { broadcastMsgs?: boolean; deleteSelfMsgs?: boolean; deleteSuperTeamMsg?: boolean; friendUsers?: boolean; friends?: boolean; msgReceipts?: boolean; myInfo?: boolean; myTeamMembers?: boolean; offlineMsgs?: boolean; recallMsg?: boolean; relations?: boolean; roamingMsgs?: boolean; sessionAck?: boolean; sessionHistoryMsgsDelete?: boolean; stickTopSessions?: boolean; superTeamRoamingMsgs?: boolean; superTeamSessionAck?: boolean; superTeams?: boolean; teams?: boolean }
Type declaration
Optional broadcastMsgs?: boolean
Optional deleteSelfMsgs?: boolean
Optional deleteSuperTeamMsg?: boolean
Optional friendUsers?: boolean
Optional friends?: boolean
Optional msgReceipts?: boolean
Optional myInfo?: boolean
Optional myTeamMembers?: boolean
Optional offlineMsgs?: boolean
Optional recallMsg?: boolean
Optional relations?: boolean
Optional roamingMsgs?: boolean
Optional sessionAck?: boolean
Optional sessionHistoryMsgsDelete?: boolean
Optional stickTopSessions?: boolean
Optional superTeamRoamingMsgs?: boolean
Optional superTeamSessionAck?: boolean
Optional superTeams?: boolean
Optional teams?: boolean
SyncRoamingMsgsResult
Sync
Roaming
Msgs
Result
: { msgs
: IMMessage[]; sessionId
: string; timetag
: number }Type declaration
sessionId: string
timetag: number
TKickedReason
TKicked
Reason
: { clientType
: TClientType; customClientType
: number; ext
?: string; message
: string; reason
: "unknow" | "samePlatformKick" | "serverKick" | "otherPlatformKick" | "silentlyKick" }Type declaration
customClientType: number
Optional ext?: string
message: string
reason: "unknow" | "samePlatformKick" | "serverKick" | "otherPlatformKick" | "silentlyKick"
TProxyMsg
TProxyMsg: { body: string; from: string; time: number }
Type declaration
body: string
from: string
time: number
TTransferTeamResult
TTransfer
Team
Result
: { from
: { account
: string; id
: string; type
: TeamMemberType; updateTime
: number }; team
: Team; to
: { account
: string; id
: string; type
: TeamMemberType; updateTime
: number } }Type declaration
from: { account: string; id: string; type: TeamMemberType; updateTime: number }
account: string
id: string
updateTime: number
to: { account: string; id: string; type: TeamMemberType; updateTime: number }
account: string
id: string
updateTime: number
TUpdateSuperTeamManagersResult
TUpdate
Super
Team
Managers
Result
: { accounts
: string[]; isManager
: boolean; members
: { account
: string; id
: string; type
: SuperTeamMemberType; updateTime
: number }[]; team
: { memberUpdateTime
: number; teamId
: string } }Type declaration
accounts: string[]
isManager: boolean
members: { account: string; id: string; type: SuperTeamMemberType; updateTime: number }[]
team: { memberUpdateTime: number; teamId: string }
memberUpdateTime: number
teamId: string
TUpdateTeamManagersResult
TUpdate
Team
Managers
Result
: { accounts
: string[]; isManager
: boolean; members
: { account
: string; id
: string; type
: TeamMemberType; updateTime
: number }[]; team
: { memberUpdateTime
: number; teamId
: string } }Type declaration
accounts: string[]
isManager: boolean
members: { account: string; id: string; type: TeamMemberType; updateTime: number }[]
team: { memberUpdateTime: number; teamId: string }
memberUpdateTime: number
teamId: string
TUpdateTeamMembersMute
TUpdate
Team
Members
Mute
: { accounts
: string[]; members
: { account
: string; id
: string; mute
: boolean; teamId
: string; updateTime
: number }[]; mute
: boolean; team
: Team }Type declaration
accounts: string[]
members: { account: string; id: string; mute: boolean; teamId: string; updateTime: number }[]
mute: boolean
TWillReconnect
TWillReconnect: { duration: number; retryCount: number }
Type declaration
duration: number
retryCount: number
要踢掉的端的设备号数组
端设备号能在 multiPortLogin 多端登陆事件里拿到