onDisconnected method Null safety

void onDisconnected(
  1. int? errorCode
)

Occurs when the SDK disconnect from the chat server.

Note that the logout may not be performed at the bottom level when the SDK is disconnected.

Implementation

void onDisconnected(int? errorCode);