TsgcHTTP3Client › Methods › Connected
Returns True when the HTTP/3 connection is currently open.
function Connected: Boolean;
True when the QUIC connection is established and the client can send requests, False otherwise. (Boolean)
Connected reports the state of the underlying QUIC connection. It becomes True after a successful Connect and returns to False after Disconnect or when the peer closes the connection.
Connected is a method, not a property, so it must be called with parentheses in C++Builder and C#.
if oClient.Connected then
oClient.Disconnect;