-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot create pull stream / missing method #65
Comments
I also have the suspicion, that the code might be racy: if the server sends data before the |
Oh, got it. Shouldn't use streams put public methods. |
PullStream pulls a stream from the server. It sends a StreamingInvocation to the server. Maybe the name is missleading. See https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/HubProtocol.md#streaming. |
FYI streaming has less protocol overhead than calling the client for every new item. |
Not my choice as client… As I‘m slowly beginning to understand how signalR actually works, I‘m not entirely happy with the API exposed. The extensive use of reflection make it hard to type-check anything at compile time. Exposing the handlers as public methods on the receiver is not self-explanatory. If you should ever consider a 2.0 version it might be nice to make the handlers explicitly configurable per function, maybe something like
|
IMHO, type checking is not missing because of the usage of reflection, but because SignalR has no IDL like gPRC or https://github.com/twitchtv/twirp. |
I'm trying to rebuild this example using the go client: https://developer.easee.cloud/page/signalr-code-examples
I'm assuming (I'm new to to SignalR) that
on
is synonym withPullStream
?This is what I have:
Unfortunately, this always errors:
It seems I have no way getting around the
missing method
error?The text was updated successfully, but these errors were encountered: