RicoSuter / SigSpec

Specification and code generator for SignalR Core.
MIT License
159 stars 37 forks source link

Support for streaming #38

Closed jbriggs22 closed 2 years ago

jbriggs22 commented 3 years ago

Any plans to add support for streaming?

https://docs.microsoft.com/en-us/aspnet/core/signalr/streaming

Thanks!

RicoSuter commented 3 years ago

Isnt the "type": "Observable" covering that? Or is just the IAsyncEnumerable handling missing?

jbriggs22 commented 3 years ago

In my case I was using Task<IAsyncEnumerable<T>> along with Cancellationtoken, if that were to be handled the same as ChannelReader<T> (which I think was "type": "Observable"), that would be sufficient.