Skip to content

Commit

Permalink
[v7.0.0] Lib.AspNetCore.ServerSentEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeczek committed Nov 9, 2021
1 parent 042b4c4 commit bd7a4d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Lib.AspNetCore.ServerSentEvents 7.0.0
### Additions and Changes
- Added support for disconnecting clients. You can read more here: [Server-Sent Events and ASP.NET Core - Disconnecting a Client](https://www.tpeczek.com/2021/11/server-sent-events-and-aspnet-core.html)
### Bug Fixes
- Fixed race condition in groups management. This has caused method signature change (`IServerSentEventsService.AddToGroupAsync` to `IServerSentEventsService.AddToGroup`)

## Lib.AspNetCore.ServerSentEvents 6.0.0
### Additions and Changes
- Changed support for ASP.NET Core 3.0.0 to ASP.NET Core 3.1.0
Expand Down
1 change: 1 addition & 0 deletions DocFx.AspNetCore.ServerSentEvents/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ There are some blog posts available which describe implementation details and so
- [Server-Sent Events (SSE) support for ASP.NET Core](https://www.tpeczek.com/2017/02/server-sent-events-sse-support-for.html)
- [Server-Sent Events (or WebSockets) broadcasting in load balancing scenario with Redis](https://www.tpeczek.com/2017/09/server-sent-events-or-websockets.html)
- [Server-Sent Events and ASP.NET Core - You may need keep alives](https://www.tpeczek.com/2018/08/server-sent-events-and-aspnet-core-you_9.html)
- [Server-Sent Events and ASP.NET Core - Disconnecting a Client](https://www.tpeczek.com/2021/11/server-sent-events-and-aspnet-core.html)

## Sponsor this project

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Lib.AspNetCore.ServerSentEvents is a library which provides Server-Sent Events (SSE) support for ASP.NET Core</Description>
<Copyright>Copyright © 2017 - 2021 Tomasz Pęczek</Copyright>
<VersionPrefix>6.0.0</VersionPrefix>
<VersionPrefix>7.0.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>Tomasz Pęczek</Authors>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0;net461</TargetFrameworks>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ There are some blog posts available which describe implementation details and so
- [Server-Sent Events (SSE) support for ASP.NET Core](https://www.tpeczek.com/2017/02/server-sent-events-sse-support-for.html)
- [Server-Sent Events (or WebSockets) broadcasting in load balancing scenario with Redis](https://www.tpeczek.com/2017/09/server-sent-events-or-websockets.html)
- [Server-Sent Events and ASP.NET Core - You may need keep alives](https://www.tpeczek.com/2018/08/server-sent-events-and-aspnet-core-you_9.html)
- [Server-Sent Events and ASP.NET Core - Disconnecting a Client](https://www.tpeczek.com/2021/11/server-sent-events-and-aspnet-core.html)

## Sponsor This Project

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task GetClients_GroupNameProvidedAndGroupExists_ReturnsGroup()
const string serverSentEventsClientsGroupName = nameof(GetClients_GroupNameProvidedAndGroupExists_ReturnsGroup);
ServerSentEventsService serverSentEventsService = new ServerSentEventsService(Options.Create<ServerSentEventsServiceOptions<ServerSentEventsService>>(new ServerSentEventsServiceOptions<ServerSentEventsService>
{
OnClientConnected = async (service, clientConnectedArgs) =>
OnClientConnected = (service, clientConnectedArgs) =>
{
service.AddToGroup(serverSentEventsClientsGroupName, clientConnectedArgs.Client);
}
Expand Down

0 comments on commit bd7a4d9

Please sign in to comment.