DataIn Event
Fired when data is received.
Syntax
type TDataInEvent = procedure ( Sender: TObject; ConnectionId: Integer; Text: String; TextB: TBytes; Direction: Integer ) of Object;
property OnDataIn: TDataInEvent read FOnDataIn write FOnDataIn;
Remarks
The DataIn event fires when data is received from the WebSocket client or the ForwardHost. This event may be used to log communication between the client and ForwardHost. The client is identified by the ConnectionId parameter. The incoming data is provided through the Text parameter.
The Direction parameter shows the originator of the data. Possible values are:
0 (Client) | The data originated from the WebSocket client and is being sent to the ForwardHost. |
1 (ForwardHost) | The data originated from the ForwardHost and is being sent to the WebSocket client. |