Skip to content

Commit bd7a4d9

Browse files
committed
[v7.0.0] Lib.AspNetCore.ServerSentEvents
1 parent 042b4c4 commit bd7a4d9

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Lib.AspNetCore.ServerSentEvents 7.0.0
2+
### Additions and Changes
3+
- 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)
4+
### Bug Fixes
5+
- Fixed race condition in groups management. This has caused method signature change (`IServerSentEventsService.AddToGroupAsync` to `IServerSentEventsService.AddToGroup`)
6+
17
## Lib.AspNetCore.ServerSentEvents 6.0.0
28
### Additions and Changes
39
- Changed support for ASP.NET Core 3.0.0 to ASP.NET Core 3.1.0

DocFx.AspNetCore.ServerSentEvents/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ There are some blog posts available which describe implementation details and so
2525
- [Server-Sent Events (SSE) support for ASP.NET Core](https://www.tpeczek.com/2017/02/server-sent-events-sse-support-for.html)
2626
- [Server-Sent Events (or WebSockets) broadcasting in load balancing scenario with Redis](https://www.tpeczek.com/2017/09/server-sent-events-or-websockets.html)
2727
- [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)
28+
- [Server-Sent Events and ASP.NET Core - Disconnecting a Client](https://www.tpeczek.com/2021/11/server-sent-events-and-aspnet-core.html)
2829

2930
## Sponsor this project
3031

Lib.AspNetCore.ServerSentEvents/Lib.AspNetCore.ServerSentEvents.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<Description>Lib.AspNetCore.ServerSentEvents is a library which provides Server-Sent Events (SSE) support for ASP.NET Core</Description>
44
<Copyright>Copyright © 2017 - 2021 Tomasz Pęczek</Copyright>
5-
<VersionPrefix>6.0.0</VersionPrefix>
5+
<VersionPrefix>7.0.0</VersionPrefix>
66
<VersionSuffix></VersionSuffix>
77
<Authors>Tomasz Pęczek</Authors>
88
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0;net461</TargetFrameworks>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ There are some blog posts available which describe implementation details and so
2727
- [Server-Sent Events (SSE) support for ASP.NET Core](https://www.tpeczek.com/2017/02/server-sent-events-sse-support-for.html)
2828
- [Server-Sent Events (or WebSockets) broadcasting in load balancing scenario with Redis](https://www.tpeczek.com/2017/09/server-sent-events-or-websockets.html)
2929
- [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)
30+
- [Server-Sent Events and ASP.NET Core - Disconnecting a Client](https://www.tpeczek.com/2021/11/server-sent-events-and-aspnet-core.html)
3031

3132
## Sponsor This Project
3233

Test.AspNetCore.ServerSentEvents/ServerSentEventsServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public async Task GetClients_GroupNameProvidedAndGroupExists_ReturnsGroup()
6969
const string serverSentEventsClientsGroupName = nameof(GetClients_GroupNameProvidedAndGroupExists_ReturnsGroup);
7070
ServerSentEventsService serverSentEventsService = new ServerSentEventsService(Options.Create<ServerSentEventsServiceOptions<ServerSentEventsService>>(new ServerSentEventsServiceOptions<ServerSentEventsService>
7171
{
72-
OnClientConnected = async (service, clientConnectedArgs) =>
72+
OnClientConnected = (service, clientConnectedArgs) =>
7373
{
7474
service.AddToGroup(serverSentEventsClientsGroupName, clientConnectedArgs.Client);
7575
}

0 commit comments

Comments
 (0)