Difference between revisions of "Midware TAppServer.OnClientClosed"

From Overbyte
Jump to navigation Jump to search
 
Line 3: Line 3:
 
== Definition ==
 
== Definition ==
  
  '''property''' OnClientClose: '''TClientEvent''';
+
  <syntaxhighlight lang="delphi">
 +
type
 +
TClientEvent = procedure (Sender    : TObject;
 +
                          CliWSocket : TClientWSocket) of object;
 +
 
 +
property OnClientClosed : TClientEvent;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==

Latest revision as of 08:37, 14 May 2011

Main page -> Midware component reference -> TAppServer -> OnClientClose

Definition

<syntaxhighlight lang="delphi">

type TClientEvent = procedure (Sender : TObject;

                         CliWSocket : TClientWSocket) of object;

property OnClientClosed : TClientEvent; </syntaxhighlight>

Description

Occurs when a client disconnect from the server.

The event handler could be used to update the server's user interface or to do any other post-processing or cleaning task.