TsgcWSCircuitBreaker › Methods › UnregisterConnection
Server-side hook that stops tracking a disconnected connection (counterpart of RegisterConnection).
procedure UnregisterConnection(const aIP: string);
| Name | Type | Description |
|---|---|---|
aIP | const string | Peer IP address of the connection that was just closed. |
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.
procedure TForm1.WSServerDisconnect(Connection: TsgcWSConnection);
begin
sgcWSCircuitBreaker1.UnregisterConnection(Connection.PeerIP);
end;