kickAllDevices method Null safety
Kicks out all the devices logged in under the specified account.
Param userId The account you want to log out from all the devices.
Param password The password.
Throws A description of the exception. See ChatError.
Implementation
Future<void> kickAllDevices(
{required String userId, required String password}) async {
EMLog.v('kickAllDevices: $userId, "******"');
Map req = {'username': userId, 'password': password};
Map result =
await ClientChannel.invokeMethod(ChatMethodKeys.kickAllDevices, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}