this is my WebSocket receive code, and i was wondering if i or someone could add in support to avoid the call to List.ToArray to skip another allocation? possibly having a JsonSerializer.Deserialize(IEnumerable) if even possible?
`if (result.EndOfMessage)
{
var m = Utf8Json.JsonSerializer.Deserialize(msg.ToArray());
// var m = Utf8Json.JsonSerializer.Deserialize(msg);
this is my WebSocket receive code, and i was wondering if i or someone could add in support to avoid the call to List.ToArray to skip another allocation? possibly having a JsonSerializer.Deserialize(IEnumerable) if even possible?
`if (result.EndOfMessage) { var m = Utf8Json.JsonSerializer.Deserialize(msg.ToArray());
// var m = Utf8Json.JsonSerializer.Deserialize(msg);
}`