We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JavaScript supports async generators now and SignalR still only supports the RX based callback model:
https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-9.0
https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-9.0#javascript-client
An API that looks like this:
var stream = await connection.streamAsync("Counter", 10, 500); try { for await (const value of stream) { var li = document.createElement("li"); li.textContent = item; document.getElementById("messagesList").appendChild(li); } } catch(err) { var li = document.createElement("li"); li.textContent = err; document.getElementById("messagesList").appendChild(li); } var li = document.createElement("li"); li.textContent = "Stream completed"; document.getElementById("messagesList").appendChild(li);
No response
The text was updated successfully, but these errors were encountered:
cc @BrennanConroy
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
JavaScript supports async generators now and SignalR still only supports the RX based callback model:
https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-9.0
Describe the solution you'd like
https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-9.0#javascript-client
An API that looks like this:
Additional context
No response
The text was updated successfully, but these errors were encountered: