IPWorks WebSockets 2020 .NET Edition

Questions / Feedback?

DataIn Event

Fired when data is received.

Syntax

public event OnDataInHandler OnDataIn;

public delegate void OnDataInHandler(object sender, WebsocketproxyDataInEventArgs e);

public class WebsocketproxyDataInEventArgs : EventArgs {
  public string ConnectionId { get; }
  public string Text { get; }
public byte[] TextB { get; } public int Direction { get; } }
Public Event OnDataIn As OnDataInHandler

Public Delegate Sub OnDataInHandler(sender As Object, e As WebsocketproxyDataInEventArgs)

Public Class WebsocketproxyDataInEventArgs Inherits EventArgs
  Public ReadOnly Property ConnectionId As String
  Public ReadOnly Property Text As String
Public ReadOnly Property TextB As Byte() Public ReadOnly Property Direction As Integer End Class

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.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks WebSockets 2020 .NET Edition - Version 20.0 [Build 8155]