IPWorks WebSockets 2020 Node.js Edition

Questions / Feedback?

DataIn Event

Fired when data is received.

Syntax

websocketproxy.on('DataIn', [callback])

Callback

The 'callback' is called when the 'DataIn' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.connectionId
e.text (buffer)
e.direction

Remarks

The DataIn event fires when data is received from the WebSocket client or the WebSocketProxyConnectionForwardHost. This event may be used to log communication between the client and WebSocketProxyConnectionForwardHost. 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 WebSocketProxyConnectionForwardHost.
1 (WebSocketProxyConnectionForwardHost) The data originated from the WebSocketProxyConnectionForwardHost and is being sent to the WebSocket client.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks WebSockets 2020 Node.js Edition - Version 20.0 [Build 7721]