EMConnectionListener

EMConnectionListener

new EMConnectionListener()

Source:
EMConnectionListener constructor.

Methods

onConnect(callback) → {void}

Source:
Callback user when sdk connect to the server.
Parameters:
Name Type Description
callback EMConnectionListener~onConnectCallback 回调函数
Returns:
Type
void

onDisconnect(callback) → {void}

Source:
Callback user when sdk disconnect from the server.
Parameters:
Name Type Description
callback EMConnectionListener~onDisconnectCallback 回调函数
Returns:
Type
void

(inner) onConnectCallback() → {void}

Source:
Returns:
Type
void

(inner) onDisconnectCallback(error) → {void}

Source:
Parameters:
Name Type Description
error EMError 断开连接结果
Returns:
Type
void