kickAllDevices method

Future<void> kickAllDevices(
  1. {required String userId,
  2. required String pwdOrToken,
  3. bool isPwd = true}

Forces the specified account to log out from all devices.

Param userId The account you want to force to log out from all the devices.

Param pwdOrToken The password or token.

Param isPwd Whether a password or token is used: (Default)true: A password is used; false: A token is used.

Throws A description of the exception. See ChatError.


Future<void> kickAllDevices({
  required String userId,
  required String pwdOrToken,
  bool isPwd = true,
}) async {
  Map req = {'username': userId, 'password': pwdOrToken, 'isPwd': isPwd};
  Map result =
      await ClientChannel.invokeMethod(ChatMethodKeys.kickAllDevices, req);
  try {
  } on ChatError catch (e) {
    throw e;