Skip to content
v1
文档/Browser JS SDK/鉴权与登录

@beeworks/imsdk


@beeworks/imsdk / auth / IMClientConfig

IMClientConfig ​

IMClientConfig 配置项

Properties ​

initialConnectionTimeout? ​

optional initialConnectionTimeout: number

首次登录等待 WASM 加载、WebSocket 连接及 Hello 握手完成的最长时间(毫秒)

Default Value ​

ts
60000

maxReconnectAttempts? ​

optional maxReconnectAttempts: number

最大重连尝试次数


baseReconnectDelay? ​

optional baseReconnectDelay: number

基础重连延迟(毫秒)


maxReconnectDelay? ​

optional maxReconnectDelay: number

最大重连延迟(毫秒)


readTimeout? ​

optional readTimeout: number

读取超时(毫秒)


writeTimeout? ​

optional writeTimeout: number

写入超时(毫秒)


connectTimeout? ​

optional connectTimeout: number

连接超时(毫秒)


handshakeTimeout? ​

optional handshakeTimeout: number

握手超时(毫秒)


heartbeatInterval? ​

optional heartbeatInterval: number

心跳间隔(毫秒)


heartbeatTimeout? ​

optional heartbeatTimeout: number

心跳超时(毫秒)