IServerSentEventsClient.Disconnect
has been replaced byIServerSentEventsClient.DisconnectAsync
, which will attempt to gracefully complete the underlying HTTP response when disconnecting a client- Dropped support for .NET Core 3.1 and .NET 5
- Fix for scenario when reconnect interval happens to be shorter than connection timeout, which results in client being prevented from reconnecting.
- Added support for scenario when multiple types are provided as
Accept
header value (thanks to @krebil) - Added support for wildcard (
*/*
andtext/*
) mime types (thanks to @krebil)
- Added options for controlling the format of keepalives.
- Added options for controlling the
Accept
request header validation.
- Removed upper bounds on some of the .NET Framework dependencies versions
- Dropped support for ASP.NET Core 2.1.0 (the lowest supported version is now ASP.NET Core 3.1.0)
- Added support for ASP.NET Core 6
- Added support for disconnecting clients. You can read more here: Server-Sent Events and ASP.NET Core - Disconnecting a Client
- Fixed race condition in groups management. This has caused method signature change (
IServerSentEventsService.AddToGroupAsync
toIServerSentEventsService.AddToGroup
)
- Changed support for ASP.NET Core 3.0.0 to ASP.NET Core 3.1.0
- Added support for ASP.NET Core 5
- Exposed way to provide ReconnectInterval through ServerSentEventsServiceOptions.
- Changed the collection of key/value pairs to store additional information for clients to thread safe methods (thank you @sebastiano1972)
- Fixed Accept request header validation so request without it are processed.
- Fixed ClientConnected and ClientDisconnected events not firing for custom ServerSentEventsService implementations.
- Added a collection of key/value pairs to store additional information for clients (thank you @sebastiano1972)
- Dropped support for obsolete APIs
- Dropped support for ASP.NET Core 2.0.0 (the lowest supported version is now ASP.NET Core 2.1.0)
- Added support for ASP.NET Core 3.0.0
- Added support for Endpoint Routing
- Added method for getting clients in a specified group.
- Added SendEventAsync overload which takes a predicate against IServerSentEventsClient as a parameter.
- Exposed way to provide actions for ClientConnected and ClientDisconnected events through ServerSentEventsServiceOptions.
- Added method for adding to group.
- Added methods for sending to group.
- Added support for authorization.
- Added support for setting HTTP response headers for accept response.
- Added support for client connected and disconnected events.
- Improved support for CancellationToken in asynchronous operations.
- Hot synchronous path performance improvements.
- Upgraded to .NET Standard 2.0 and ASP.NET Core 2.0.
- Added generic versions of UseServerSentEvents and MapServerSentEvents.
- Marked obsolete versions of UseServerSentEvents and MapServerSentEvents which take instance of ServerSentEventsService as parameter.
- Added support for keepalives
- General performance improvements.
- SendEventAsync performance improvements.
- ChangeReconnectIntervalAsync performance improvements.
- Fix for IIS (and potentially other reverse proxies) adding uncontrolled response compression.
- Generic performance improvements.
- Fix for events not reaching clients when response compression is enabled (.NET Framework).
- Added capability of sending events to specific clients.