TsgcWebSocketHTTPServerEvents › OnLoadBalancerError

OnLoadBalancerError Event

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

Syntax

public event TsgcWSLoadBalancerErrorEventHandler OnLoadBalancerError;
// delegate void TsgcWSLoadBalancerErrorEventHandler(TObject Sender, string Error)

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 HTTP or WebSocket client connections are still reported through OnError and OnException.

Example


void OnLoadBalancerError(TObject Sender, string Error)
{
  Console.WriteLine("#load balancer error: " + Error);
}

Back to Events