BinaryData Event
Passes a received chunk of binary data to the application.
Syntax
public event OnBinaryDataHandler OnBinaryData; public delegate void OnBinaryDataHandler(object sender, WebsocketserverBinaryDataEventArgs e); public class WebsocketserverBinaryDataEventArgs : EventArgs { public long ConnectionID { get; } public byte[] Buffer { get; } public bool Last { get; } }
Public Event OnBinaryData As OnBinaryDataHandler Public Delegate Sub OnBinaryDataHandler(sender As Object, e As WebsocketserverBinaryDataEventArgs) Public Class WebsocketserverBinaryDataEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property Buffer As Byte() Public ReadOnly Property Last As Boolean End Class
Remarks
The component fires this event repeatedly to pass incoming pieces of binary data to the application. The Last parameter indicates that this is the last chunk.