Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client to server streaming fixes #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tobsil
Copy link

@tobsil tobsil commented Oct 31, 2024

Fixes creation of client to server streams as well as an unexpected connection close if the client closes the stream (wrong competion message).

Please note this pull request also includes the changes from #98

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.
prevents an index out of range exceptions and uses the correct
invocation ids for sent items
This sets either the 'error' or the 'result' field, or neither as it is
specified here:
https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/HubProtocol.md
This prevents exceptions on the server when the client closes the
stream.
not all changes where committed...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant