DataIn Event
Fired when data is received.
Syntax
websocketproxy.on('DataIn', listener: (e: {readonly connectionId: string, readonly text: string, readonly textB: Uint8Array, readonly direction: number}) => void )
Remarks
The DataIn event fires when data is received from the WebSocket client or the ConnectionsForwardHost. This event may be used to log communication between the client and ConnectionsForwardHost. 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 ConnectionsForwardHost. |
1 (ConnectionsForwardHost) | The data originated from the ConnectionsForwardHost and is being sent to the WebSocket client. |