[client] Add a missing function.