TsgcWebSocketServer › Events › OnLoadBalancerError
Fires when an error occurs communicating with the Load Balancer Server.
property OnLoadBalancerError: TsgcWSLoadBalancerErrorEvent;
// TsgcWSLoadBalancerErrorEvent = procedure(Sender: TObject; const Error: String) of object
—
OnLoadBalancerError is raised when the side connection to the Load Balancer Server reports a protocol-level problem (handshake rejection, invalid message, authentication failure...). The Error parameter contains a textual description. The event only reports failures with the Load Balancer link; errors on regular client connections are still reported through OnError and OnException.
procedure OnLoadBalancerError(Sender: TObject; const Error: String);
begin
WriteLn('#load balancer error: ' + Error);
end;