We need to close the connection if there is an exception when writing to the transport on the server side. Currently if an exception happens it leaves the connection in an unsable state - after the exception no messages from the server will be sent to the client because the writing loop is terminated. Ignoring the message could cause hangs on the client side since we can fail while writing a completion message. In this case if the client is awaiting the invocation it will hang because the task will never be completed. |
||
|---|---|---|
| benchmarks/Microsoft.AspNetCore.SignalR.Microbenchmarks | ||
| build | ||
| client-ts | ||
| samples | ||
| specs | ||
| src | ||
| test | ||
| .appveyor.yml | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| Directory.Build.props | ||
| Directory.Build.targets | ||
| LICENSE.txt | ||
| NuGet.config | ||
| NuGetPackageVerifier.json | ||
| README.md | ||
| SignalR.sln | ||
| build.cmd | ||
| build.ps1 | ||
| build.sh | ||
| version.xml | ||
README.md
ASP.NET Core SignalR
ASP.NET Core SignalR is a new library for ASP.NET Core developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time.
You can watch an introductory presentation here - Introducing ASP.NET Core Sockets.
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.
The JavaScript client is being published to our dev npm registry as @aspnet/signalr-client. The module contains a browserfied version of the client. You can install the module as follows:
- Create an .npmrc file with the following line:
@aspnet:registry=https://dotnet.myget.org/f/aspnetcore-ci-dev/npm/ - Run:
npm install @aspnet/signalr-client
Alternatively, if you don't want to create the .npmrc file run the following commands:
npm install msgpack5
npm install @aspnet/signalr-client --registry https://dotnet.myget.org/f/aspnetcore-ci-dev/npm/