public void ReceiveData(int[] data) { /// @TODO: C# Blazor wont accept ArrayUint8 from JS so we pass the binary data as int[] and convert to byte[] byte[] buffer = data.Cast <int>().Select(i => (byte)i).ToArray(); if (OnDataReceived.HasDelegate) { OnDataReceived.InvokeAsync(buffer); } }