sefidgaran / signalr_client

A Flutter SignalR Client for ASP.NET Core
https://pub.dev/packages/signalr_netcore
MIT License
79 stars 112 forks source link

Add method `streamControllable(..)` #97

Closed tobsil closed 3 weeks ago

tobsil commented 1 month ago

This method essentially does the same as stream previously did, but instead of returning the stream it does return the SteamControler. This makes it possible for the abort the streaming on the client side by calling close() on the controller.

The stream() uses streamControllable() to return the stream, the method is still keept to not break existing usage of the method.