DataPacketIn Event
Fired when receiving a data packet from the server.
Syntax
server.on('DataPacketIn', [callback])
Callback
The 'callback' is called when the 'DataPacketIn' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.dataPacket (buffer)
Remarks
This event fires when a packet is received. The entire data packet (including all framing and error detection characters) is contained in the DataPacket parameter. This parameter may be inspected for advanced troubleshooting, or to extract additional response properties beyond the scope of this component.