Search
Preparing search index...
The search index is not available
NIM
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
NIM
src/NIMInterface
NIMInterface
Interface NIMInterface
Hierarchy
NIMInterface
Index
Properties
status
Methods
connect
destroy
disconnect
kick
set
Options
Properties
status
status
:
NIMEInstanceStatus
实例状态
Methods
connect
connect
(
)
:
Promise
<
void
>
建立连接,并且登录
Returns
Promise
<
void
>
destroy
destroy
(
)
:
Promise
<
void
>
销毁实例
销毁当前 IM 实例,同时会退出登录状态,并断开websocket连接
移除所有监听事件,销毁部分内部变量,并且此实例再也无法调用 connect 恢复 IM 连接
Returns
Promise
<
void
>
disconnect
disconnect
(
)
:
Promise
<
void
>
断开连接。
退出登录状态,并断开 websocket 连接
disconnect完成后,实例不会被销毁,可再次 connect 方法登录IM
Returns
Promise
<
void
>
kick
kick
(
options
:
KickOptions
)
:
Promise
<
KickResult
>
踢当前用户登录的其它端
Parameters
options:
KickOptions
Returns
Promise
<
KickResult
>
set
Options
set
Options
(
options
:
NIMInitializeOptions
)
:
void
更新初始化传入的配置,在初始化完成后使用,在下一次建立连接时生效
Parameters
options:
NIMInitializeOptions
Returns
void
Modules
src/
Cloud
Session
Service
Interface
src/
Cloud
Storage
Service
Interface
src/
Event
Service
Interface
src/
Friend
Service
Interface
src/
Misc
Service
Interface
src/
Msg
Extend
Service
Interface
src/
Msg
Log
Service
Interface
src/
Msg
Service
Interface
src/NIMInterface
src/
Pass
Through
Service
Interface
src/
Plugin
Service
Interface
src/
Session
Service
Interface
src/
Signaling
Service
Interface
src/
Super
Team
Service
Interface
src/
System
Message
Service
Interface
src/
Team
Service
Interface
src/
User
Service
Interface
src/types
NIMInterface
status
connect
destroy
disconnect
kick
set
Options
实例状态