TsgcWSCircuitBreakerMethods › UnregisterConnection

UnregisterConnection Method

Server-side hook that stops tracking a disconnected connection (counterpart of RegisterConnection).

Syntax

procedure UnregisterConnection(const aIP: string);

Parameters

NameTypeDescription
aIPconst stringPeer IP address of the connection that was just closed.

Remarks

Reserved hook currently implemented as a no-op, paired with RegisterConnection and reserved for future per-IP metrics. Call from the server's OnDisconnect handler so every RegisterConnection has a matching UnregisterConnection. Safe to call today; it guarantees forward compatibility with no observable behavior change.

Example

procedure TForm1.WSServerDisconnect(Connection: TsgcWSConnection);
begin
  sgcWSCircuitBreaker1.UnregisterConnection(Connection.PeerIP);
end;

Back to Methods