System.Net.ServerSentEvents 10.0.15
About
System.Net.ServerSentEvents provides the SseParser type, which exposes factory methods for creating parsers for the events in a stream of server-sent events (SSE).
Key Features
- Parser for server-sent events (SSE)
How to Use
Asynchronously parsing event contents as strings
using HttpClient client = new();
using Stream stream = await client.GetStreamAsync("https://localhost:12345/sse");
await foreach (SseItem<string> item in SseParser.Create(stream).EnumerateAsync())
{
Console.WriteLine(item.Data);
}
Synchronously parsing event contents as JSON
MemoryStream stream = new(data);
foreach (SseItem<Book> item in SseParser.Create(stream, (eventType, bytes) => JsonSerializer.Deserialize<Book>(bytes)).Enumerate())
{
Console.WriteLine(item.Data.Author);
}
Main Types
The main types provided by this library are:
System.Net.ServerSentEvents.SseParserSystem.Net.ServerSentEvents.SseParser<T>System.Net.ServerSentEvents.SseItem<T>
Feedback & Contributing
System.Net.ServerSentEvents is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on System.Net.ServerSentEvents.
| Packages | Downloads |
|---|---|
|
OpenAI
The official .NET library for the OpenAI service API.
|
57 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
52 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d5dc8a13cc618b9cbdc1e5744b4806c594d49553
|
47 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
46 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/dotnet/tree/89c8f6a112d37d2ea8b77821e56d170a1bccdc5a
|
45 |
|
ModelContextProtocol.Core
Core .NET SDK for the Model Context Protocol (MCP)
|
45 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
44 |
|
ModelContextProtocol.Core
Core .NET SDK for the Model Context Protocol (MCP)
|
44 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/dotnet/tree/75972a5ba730bdaf7cf3a34f528ab0f5c7f05183
|
43 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/dotnet/tree/b0f34d51fccc69fd334253924abd8d6853fad7aa
|
43 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d3aba8fe1a0d0f5c145506f292b72ea9d28406fc
|
43 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
43 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/f6b3a5da75eb405046889a5447ec9b14cc29d285
|
42 |
|
ModelContextProtocol.Core
Core .NET SDK for the Model Context Protocol (MCP)
|
42 |
|
ModelContextProtocol.Core
Core .NET SDK for the Model Context Protocol (MCP)
|
41 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/af22effae4069a5dfb9b0735859de48820104f5b
|
41 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
41 |
|
ModelContextProtocol.Core
Core .NET SDK for the Model Context Protocol (MCP)
|
40 |
|
Microsoft.AspNetCore.Http.Connections.Client
Client for ASP.NET Core Connection Handlers
This package was built from the source code at https://github.com/dotnet/dotnet/tree/ddf39a1b4690fbe23aea79c78da67004a5c31094
|
40 |
|
ModelContextProtocol.Core
Core .NET SDK for the Model Context Protocol (MCP)
|
39 |
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.15)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET 8.0
- No dependencies.
.NET 9.0
- No dependencies.
.NET 10.0
- No dependencies.
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.15)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
| Version | Downloads | Last updated |
|---|---|---|
| 11.0.0 | 4 | 11/12/2026 |
| 11.0.0-rc.3.26522.148 | 15 | 10/29/2026 |
| 11.0.0-rc.2.26504.105 | 22 | 10/14/2026 |
| 11.0.0-rc.1.26425.128 | 27 | 9/14/2026 |
| 11.0.0-preview.7.26381.103 | 35 | 8/13/2026 |
| 11.0.0-preview.6.26359.118 | 35 | 7/18/2026 |
| 11.0.0-preview.5.26302.115 | 32 | 6/10/2026 |
| 11.0.0-preview.4.26230.115 | 39 | 5/15/2026 |
| 11.0.0-preview.3.26207.106 | 36 | 5/4/2026 |
| 11.0.0-preview.2.26159.112 | 41 | 3/12/2026 |
| 11.0.0-preview.1.26104.118 | 36 | 2/17/2026 |
| 10.0.15 | 4 | 11/13/2026 |
| 10.0.14 | 14 | 10/29/2026 |
| 10.0.13 | 19 | 10/14/2026 |
| 10.0.12 | 23 | 9/14/2026 |
| 10.0.11 | 24 | 8/13/2026 |
| 10.0.10 | 30 | 7/20/2026 |
| 10.0.9 | 35 | 6/13/2026 |
| 10.0.8 | 41 | 5/15/2026 |
| 10.0.7 | 34 | 5/4/2026 |
| 10.0.6 | 41 | 5/4/2026 |
| 10.0.5 | 42 | 3/13/2026 |
| 10.0.4 | 39 | 3/12/2026 |
| 10.0.3 | 38 | 2/19/2026 |
| 10.0.2 | 39 | 1/14/2026 |
| 10.0.1 | 43 | 12/11/2025 |
| 10.0.0 | 41 | 12/11/2025 |
| 10.0.0-rc.2.25502.107 | 41 | 12/11/2025 |
| 10.0.0-rc.1.25451.107 | 37 | 12/11/2025 |
| 10.0.0-preview.7.25380.108 | 43 | 12/11/2025 |
| 10.0.0-preview.6.25358.103 | 40 | 12/11/2025 |
| 10.0.0-preview.5.25277.114 | 41 | 12/11/2025 |
| 10.0.0-preview.4.25258.110 | 37 | 12/11/2025 |
| 10.0.0-preview.3.25171.5 | 43 | 12/11/2025 |
| 10.0.0-preview.2.25163.2 | 36 | 12/11/2025 |
| 10.0.0-preview.1.25080.5 | 43 | 12/11/2025 |
| 9.0.23 | 4 | 11/13/2026 |
| 9.0.22 | 15 | 10/30/2026 |
| 9.0.21 | 15 | 10/14/2026 |
| 9.0.20 | 25 | 9/14/2026 |
| 9.0.19 | 27 | 8/13/2026 |
| 9.0.18 | 26 | 7/20/2026 |
| 9.0.17 | 34 | 6/12/2026 |
| 9.0.16 | 44 | 5/15/2026 |
| 9.0.15 | 40 | 5/4/2026 |
| 9.0.14 | 41 | 3/12/2026 |
| 9.0.13 | 44 | 2/19/2026 |
| 9.0.12 | 39 | 1/14/2026 |
| 9.0.11 | 40 | 12/11/2025 |
| 9.0.10 | 38 | 12/11/2025 |
| 9.0.9 | 40 | 12/11/2025 |
| 9.0.8 | 43 | 12/11/2025 |
| 9.0.7 | 34 | 12/11/2025 |
| 9.0.6 | 37 | 12/11/2025 |
| 9.0.5 | 39 | 12/11/2025 |
| 9.0.4 | 41 | 12/11/2025 |
| 9.0.3 | 35 | 12/11/2025 |
| 9.0.2 | 36 | 12/11/2025 |
| 9.0.1 | 38 | 12/11/2025 |
| 9.0.0 | 33 | 12/11/2025 |
| 9.0.0-rc.2.24473.5 | 36 | 12/11/2025 |
| 9.0.0-rc.1.24431.7 | 36 | 12/11/2025 |
| 9.0.0-preview.7.24405.7 | 41 | 12/11/2025 |
| 9.0.0-preview.6.24327.7 | 36 | 12/11/2025 |