Announcement

Collapse
No announcement yet.

How to react to server rejecting client(reading the server error message client side)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to react to server rejecting client(reading the server error message client side)

    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)?
Working...
X