I receive the byte[] array (with loop until get all bytes of message)
var buffer = new ArraySegment(new byte[2048]);
result = await ws.ReceiveAsync(buffer, CancellationToken.None);
Then I get the utf8 string
using var reader = new StreamReader(ms, Encoding.UTF8);
var message = await reader.ReadToEndAsync();
How you suggest get the hex? Transforming buffer to hex and then to string utf8? Is not the same?
This is the result of deserialize, I doubt the encoding is wrong...
The question is how to decode the "data" field or make sense to elemnt 3 and 4 of the array...
Do you know the datatypes of the underlying data? I only recommended hex as a inbetween goal so you can understand the data better. It will still not work if you just convert it to a string though
This is the result of deserialize, I doubt the encoding is wrong... The question is how to decode the "data" field or make sense to elemnt 3 and 4 of the array...
Do you know the datatypes of the underlying data? I only recommended hex as a inbetween goal so you can understand the data better. It will still not work if you just convert it to a string though