TsgcWSAPIKeyManager › Methods › UnregisterConnection
Releases tracking for a connection. Called automatically on disconnect.
procedure UnregisterConnection(const aIP: string);
| Name | Type | Description |
|---|---|---|
aIP | const string | Peer IP of the connection that just closed. |
Counterpart to RegisterConnection — called automatically by the server on OnDisconnect so any per-connection state the key manager is holding (for custom subclasses that track live counts or rolling metrics) can be released. The stock implementation is a no-op placeholder. Under normal deployment with TsgcWebSocketHTTPServer.APIKeyManager assigned you never call it manually.
// Called automatically by the server on disconnect. Custom loops:
sgcWSAPIKeyManager1.UnregisterConnection(oPeer.IP);