You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am running into an issue when using InvokeAsync to stream data from a server to a client via a ChannelReader, where it is failing with HubException: Client failed to parse Argument(s)
I have a minimal repro here: https://github.com/bbartels/SignalRTest/tree/main
I couldn't find any docs specifically around my scenario. I have also previously tried to just use SendDataAsync with a ChannelReader more closely aligned with the scenarios in the docs: https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-8.0, but didn't get anywhere either. While it didn't fail with an exception, it just did not invoke the handler.
In case it is relevant, what I want to achieve is a call to a single SignalR clients, stream some data to them, let them do some processing and stream some data back. InvokeAsync seems to suit itself well as it allows you to return a response. I am not sure if ChannelReader is allowed to be returned from InvokeAsync.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am running into an issue when using
InvokeAsync
to stream data from a server to a client via aChannelReader
, where it is failing withHubException: Client failed to parse Argument(s)
I have a minimal repro here: https://github.com/bbartels/SignalRTest/tree/main
I couldn't find any docs specifically around my scenario. I have also previously tried to just use
SendDataAsync
with aChannelReader
more closely aligned with the scenarios in the docs: https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-8.0, but didn't get anywhere either. While it didn't fail with an exception, it just did not invoke the handler.In case it is relevant, what I want to achieve is a call to a single SignalR clients, stream some data to them, let them do some processing and stream some data back.
InvokeAsync
seems to suit itself well as it allows you to return a response. I am not sure ifChannelReader
is allowed to be returned fromInvokeAsync
.Beta Was this translation helpful? Give feedback.
All reactions