TsgcWebSocketServerEvents › OnLoadBalancerError

OnLoadBalancerError Event

Fires when an error occurs communicating with the Load Balancer Server.

Syntax

property OnLoadBalancerError: TsgcWSLoadBalancerErrorEvent;
// TsgcWSLoadBalancerErrorEvent = procedure(Sender: TObject; const Error: String) of object

Default Value

Remarks

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.

Example


procedure OnLoadBalancerError(Sender: TObject; const Error: String);
begin
  WriteLn('#load balancer error: ' + Error);
end;

Back to Events