dotnet / dotnet/aspnetcore

Is IAsyncEnumerable supported as a client result type in SignalR?

Open
#46,161 21 comments 8 reactions 0 assignees View on GitHub
area-signalr
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I am trying to combine [client results](https://learn.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-7.0#client-results) with [streaming](https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-7.0) in SignalR to send a request message from the server to the client and have the client respond with a stream of response messages. Is this currently supported?

For example can I create a ```Hub``` and IClient method ```Task> GetContent()``` and call it from the server on a client?

All the streaming examples I've found in the documentation are initiated by the client rather than the server.

### Describe the solution you'd like

If it's not supported, then I'd like support to be added for returning streaming responses from the client to the server.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.