Repository navigation
🎉 First Stable Release
PushStream is now production-ready with both server and client packages published.
📦 Packages
| Package | Version | Install |
|---|---|---|
| PushStream.Core | 0.1.0 | dotnet add package PushStream.Core |
| PushStream.AspNetCore | 0.1.0 | dotnet add package PushStream.AspNetCore |
✨ Features
- Server-Sent Events abstraction - No more raw SSE handling
- Connection management - Track clients by ID with built-in store
- Event publishing - Broadcast to all or target specific clients
- Heartbeat support - Keep connections alive automatically
- ASP.NET Core integration - Simple
AddPushStream()+MapEventStream()
🚀 Quick Start
sharp
// Program.cs
builder.Services.AddPushStream();
var app = builder.Build();
app.MapEventStream("/events");
// Publish from anywhere
app.MapPost("/notify", async (IEventPublisher publisher) =>
{
await publisher.PublishAsync("notification", new { message = "Hello!" });
});