My client is connecting to the server by using APlayerController::ClientTravel(TEXT(“IP:PORT”), TRAVEL_Absolute);
On the server, I reject the client in AGameMode::PreLogin() by setting the ErrorMessage.
How can I access this ErrorMessage on the client side to give the info about the rejection reason to the user? How is the client notified that it was rejected (APlayerController::ClientTravel does not return anything and seems to be asynchronous)?